GOS Link

Hi All,
I am new to this area of SAP. I have a custom report which lists all PO status the PO has. It displays GR and IR data.
My client now wants additional column in the output of the report. This column should have an icon which when clicked should link to vendor invoice (attached to MIRO and Accountings doc's).
This Vendor Invoice is saved as attachment.
The transaction OAAD and then click on Technical Search push button, I have all documents stored in the archive link. If I double click on the Invoice number which is stored under column SAP Object ID, it opens up Vendor Invoice with Java Viewer or Live Link.
How can I achieve this in my custom program. Please guide me.
Thanks.

Hi Naimesh,
It is not working for me. The internal table t_links is blank for me. Please advice, can I do something else to see if its working.
I see the attachment in MIRO.
gs_lpor-instid = '57000250912009'.
  gs_lpor-typeid = 'BUS2081'.
  gs_lpor-catid  = 'BO'.
  la_relat-sign = 'I'.
  la_relat-option = 'EQ'.
  la_relat-low = 'ATTA'.
  APPEND la_relat TO lt_relat.
      CALL METHOD cl_binary_relation=>read_links
        EXPORTING
          is_object           = gs_lpor
          it_relation_options = lt_relat
        IMPORTING
          et_links            = t_links.
    CATCH cx_root INTO lo_root.

Similar Messages

  • Generic Object Services(GOS)-Link to URL

    Hi,
    I have a requirement in Generic Object Services.I have to Create External Document(URL) [example:www.sap.com] in <b>background</b> for a FI document(which is viewed in Txn FB03).
    Any idea to achieve it?
    Thanks,
    S.Banukumar

    did you manage to do this?

  • Problem GOS read_links of "follow-on" BKPF document

    Hello,
    I have problem reading GOS links ( with CL_BINARY_RELATION=>read_links or any similar methods/FMs ) of FI document (type BKPF).
    In SRGBTBREL table there are also no entries for this BKPF document  (in INSTID_A).
    BUT I can see attachments + notes in FB03 Attachment list for this document.
    After debbuging FB03 Attachment list I have found, that BKPF document does not have directly attached files, even though I can see them in FB03. Because it is "follow-on document" for invoice (which have some attached files), and there is also WF and PO in relationship browser (they have also another attachments, seen in FB03).
    FB03 GOS attachment list prepares all these objects (document,invoice,WF,PO..) and reads attachments for all of them.
    My question - how to read these links / attachments when I know only BKPF document in my program? Do I have to somehow programaticaly search for previous objects (invoice, PO, WF..) and after it read their attachments? I Thought that it is done automaticaly by CL_BINARY_RELATION=>read_links)...
    Problem is on 731 release.

    Ok, I answer to myself with what I found so far:
    In FB03 attachments are obtained from bussines objects:    
    BKPF (document itself) - can be read by read_links, but in my case I have none attachmens on BKPF directly
    BUS2081 (invoice) - can be read by read_links, but need use BKPF-AWKEY = RBKP-BELNR & GJAHR as key
    I also found unreleased function FB_DOC_GET_GOS_LINKS which helped me a lot to understand where attachments come from.
    In my case it was all from BUS2081 invoice. Few attachments directly attached in GOS (read by read_links method) and rest were attached on content server (can be read for example with ALINK_RFC_DOCUMENTS_GET).

  • Delete Attachment - GOS

    Hi,
    I am deleting a GOS attachment using following code.
    data: i_borident  type borident,
           i_attsrv    type ref to cl_gos_document_service.
      i_objectd-objtype = 'YATTA'.
      i_objectd-logsys  = 'BO'.
      i_objectd-objkey  = inumber.
      select * from srgbtbrel                " Get GOS Link
               into table i_srgbtbrel
               where instid_a eq i_objectd-objkey
                 and typeid_a eq i_objectd-objtype
                 and catid_a eq i_objectd-logsys
                 and reltype eq 'ATTA'.
      if sy-subrc eq 0.
        create object i_attsrv.
        loop at i_srgbtbrel.
         i_borident-objkey =  i_srgbtbrel-instid_b.
         call method i_attsrv->delete_attachment
           exporting
    *         is_object     = i_objectd
             ip_attachment = i_borident-objkey.
         commit work.
        endloop.
      endif.
    I am getting proper binary key from table SRGBTBREL and passing to method DELETE_ATTACHMENT , and getting sy-subrc eq 0, then also attachment are showing in the document. But if you are going thru service object delete it has been deleting the attachment perfectly. What is the error in the code?
    Thanks
    aRs
    Message was edited by:
            aRs

    Hi.
    You are missing  SO_OBJECT_DELETE_IN_VB:
        data ls_folder_id type soodk.
        data ls_object_id type soodk.
        loop at i_srgbtbrel.
          i_borident-objkey =  i_srgbtbrel-instid_b.
          call method i_attsrv->delete_attachment
            exporting
    *         is_object     = i_objectd
             ip_attachment = i_borident-objkey.
          ls_folder_id = i_borident-objkey(17).
          ls_object_id = i_borident-objkey+17(17).
          call function 'SO_OBJECT_DELETE_IN_VB'
             in update task
             exporting
               folder_id = ls_folder_id
               object_id = ls_object_id.
        endloop.
        commit work and wait.
    At the end of cl_gos_document_service->delete_attachment, there is the line:
    call function 'GOS_ADD_KEY' exporting ip_objkey = ip_attachment.
    This function adds the deleted item to table gt_obj_to_delete.
    Later, the standard makes the call to SO_OBJECT_DELETE_IN_VB at include LSGOSITSF01, form  DELETE_OBJECTS using gt_obj_to_delete.
    Thanks.

  • Display attachments through WebDynpro Abap

    Hi all,
    I am currently working on the Generic Object Services and I manage to create attachment and retrieve them. however I can't find how to display attachments into a WebDynpro interface.
    The context:
    I have two applications which communicate with RFC:
        - The first application is the business application. It contains some RFC functions to handle data, business objects and attachments. This application is under SAP R/3 4.6.C environment and attachments are stored via GOS linked to standard transactions (VA03 / CV03 / IW53).
        - The other application is a WDA interface for the final users which calls, via RFC, the functions implemented in the first application. This application is under SAP R/3 ECC6.0 environment.
    The goal:
    I would like to implement the possibility to display some documents (PDF, DOC, XLS) stored with GOS in the first application (SAP R/3 4.6.C) via the web application (SAP R/3 ECC6.0). To do this, I will use RFC functions but I don't know the functions/methods I have to call to perform this process.
    Does someone know the information that I need? Please do not hesitate to ask me should you need further information.
    Many thanks.

    Hi.,
    For Displaying PDF use interactive form UI and bind data source to context attribute. Now set  the  downloaded data from RFC to the context attribute. It will display the PDF.,
    let the experts reply for ur query..
    Thanks & Regards
    Kiran

  • Attachments in Travel Expense approval not displayed in UWL

    Hi guys,
    We here have implemented the travel expense workflow WS20000040. According to the current std functionality, when the requestor creates a travel expense request, he is able to attach any attachments along with the request. But when the request moves to the approver in his UWL, he is not able to see the attachments. (except a default one which on clicking, opens the PR05 txn)
    Is there any config or note which needs to be applied for these attachments to be visible under the UWL's attachments?
    Please help.
    Regards,
    Pranita
    Please refer attached screenshots of requestor's and approver's screens..

    Hi Pranita,
    as far as I know, there is no standard functionality that implements the GOS-Links into the UWL. I've had the same problem as you and implemented a workaround that works as follows:
    I wrote a class that implements the Interface IF_SWF_IFS_WORKITEM_EXIT and within the only method it contains I read the GOS-Documents which I then attach as normal workflow attachments to the Workflow API. The Class is used within the programming exit of my Workflow's decision task (it's then, by definition, automatically executed). This approach has one major disadvantage: The attachments are only passed to the WF upon sending the TRIP for approval, i.e. only when the workflow is executed, naturally. This means if the TRIP is sent for approval and then the employee creates attachments afterwards (which is possible even if the trip itself can not be changed due to authorization etc.), the manager will not receive these retroactively attached documents.
    Beforehand: I'll not share the coding for this because I based it on the coding of an external colleague; but the description above should give you a design-technical idea of how to achieve your requirement.
    One more thing. To get rid of that nasty process object that links to the PR05, you can use SWFVISU. I didn't know how to do this myself until 4 months ago or so. Ibrahim Ansari explained me how to do it in one of my threads over here: Hide/Remove process Object from Workitem that is shown as attachment in UWL possible?
    Hope it helps.
    Cheers, Lukas

  • GOS on custom program not saving links

    Hi all, I've just implemented GOS to a Z program following the instructions of a SDN contribution document called "How to attach documents to any custom program using GOS". I simply want to add GOS to the selection screen of the program in order to locat and store documentation regarding this Z program.
    I run the program and the GOS button is displayed, I add some link or document and then I display the list of attachments and everything seems to be working ok. So when I leave the program and run it again no list of attachments is available as this is greyed out. Anyone could help please.
    Steps I performed:
    I created the Business object saved and released to implemented with the following:
    Key -> programName (TRDIR-NAME)
    and redefined the GOSAddObjects method like this:
    BEGIN_METHOD GOSADDOBJECTS CHANGING CONTAINER.
    DATA:
          SERVICE(255),
          BUSIDENTIFS LIKE BORIDENT OCCURS 0,
          LS_BORIDENT Type BORIDENT.
        CLEAR LS_BORIDENT.
        LS_BORIDENT-LOGSYS = SPACE.
        LS_BORIDENT-OBJTYPE = 'ZGOS'.
        LS_BORIDENT-OBJKEY  = OBJECT-KEY.
        APPEND LS_BORIDENT TO BUSIDENTIFS.
      SWC_GET_ELEMENT CONTAINER 'Service' SERVICE.
      SWC_SET_TABLE CONTAINER 'BusIdentifs' BUSIDENTIFS.
    END_METHOD.
    Z program:
    REPORT  Z_RUBS_TEST_GOS.
    CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
    DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
    OBJ TYPE BORIDENT.
    PARAMETERS: MATNR TYPE MARA-MATNR.
    AT SELECTION-SCREEN OUTPUT.
    CLEAR OBJ.
    * SET OBJECT TYPE TO 'ZGOS'
    OBJ-OBJTYPE = OBJTYPE.
    OBJ-LOGSYS  = 'OP1CLNT200'.
    * SET OBJECT KEY = REPORT NAME
    SELECT SINGLE NAME FROM TRDIR INTO OBJ-OBJKEY
    WHERE NAME = SY-REPID.
    * CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
    CREATE OBJECT MANAGER EXPORTING
    IS_OBJECT = OBJ EXCEPTIONS
    OTHERS = 1.

    You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).
    For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...)

  • Arch.link doc.attribute is missing in GOS attachment list

    Hi,
    Currently the company that I work with is in implementing archive link to attach documents (e.g.
    office document) to some object types (e.g. BUS2007,BUS1001). I have done the required configuration and the functionality is working fine.
    However when I display the document in attachment list, the followings are not shown :
    1.the title of document is not showing instead it shows the description of document type description (this is from customizing)
    2.the creator name is blank
    I compare with standard GOS file attachments, the above functionality are working fine.
    Appreciate if anyone can help me on this.
    Thanks & Regards,
    Hendra

    hi,
    hendra,
    this could be possble please see the below URL,
    http://help-abap.blogspot.com/2008/11/generic-object-services-gos-toolbar.html
    Also chect with GOS authorization
    http://help.sap.com/saphelp_nw04/helpdata/EN/1e/31a40415b711d4a39200a0c943858e/frameset.htm
    Benakaraj
    ??P
    Edited by: benaka rajes on Jul 14, 2009 8:27 PM

  • GOS objects SAP Archive Link

    Hello Experts,
    In transaction such as IW21, VA01, etc when we attach documents ( Excel, word, PDf's) in GOS ( Generic Services Objects) the document is stored in the Content repository and has a SAP Archive Link for e.g '&SO_KProObjectID=SOFFLOIO  4A6D66F30E37466EE1000000921B4EDD'
    Is its possible to convert this Archive Link into an URL?
    OR
    Is it possible to read the contents of the document at archvie Link into an internal table???
    Kindly help with possible solutions.
    Regards,
    Mansi.

    Hi,
    check this wiki [page|https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-SendingGOSattachmentstoanemailaddress]. It contains an example of attaching GOS objects to an email.
    Cheers

  • GOS - Attachment - Link is not deleting from SRGBTBREL

    I have created custom transaction and this have option to attach desktop files (ie Word, Xls, PPT, PDF) etc into this transaction. For this i am using class CL_GOS_MANAGER.
    After the attachment sometimes users will delete the attachments from attachment list.
    My problem is some attachment links are not deleted completely  from SRGBTBREL (Link Table) . Because of this next time users displaying the attachment list still the deleted entries are showing in the list.
    If users double clock  it is giving a error message "Document does not exist" ( message class SO and message Number 006) .
    Any body come across this kind of scenario?
    Given below is the code for deleting the attachments
    * Object creation of GOS View
        create object gos_view
          exporting
            ip_mode = 'D'.                     " Display Mode
    * Start GOS Service for attachement view
        i_viewobj-objtype = 'YATT_ATTA'.
        i_viewobj-objkey = yatthdr-docno.
        call method gos_view->start_service_direct
          exporting
            ip_service = 'VIEW_ATTA'
            is_object  = i_viewobj.
    a®s.
    Edited by: a®s on Feb 18, 2008 3:20 PM

    Mylene,
    Thanks for your info. I already saw this note. Please share if you any info how we can delete the SRGBTBREL links completely using class  CL_GOS_MANAGER?
    I already run the program RSGOSRE01 (suggested in the note 569123) But nothing is shown. But the document showing in the SRGBTBREL links it have attachment
    For example , the following are the links from SRGBTBREL
    BRELGUID                         RELTYPE      INSTID_B
    475E7A046A581C0EE1000000A3F331A3 ATTA         FOL27000000000004EXT32000000033688
    475E828FD2561C0DE1000000A3F331A3 ATTA         FOL27000000000004EXT32000000033775
    476515A0A02A0E78E1000000A3F331A3 ATTA         FOL27000000000004EXT32000000034502
    47651683A02A0E78E1000000A3F331A3 ATTA         FOL27000000000004EXT32000000034503
    Here the last link still showing in the table , but i find there is not attachment
    47651683A02A0E78E1000000A3F331A3 ATTA         FOL27000000000004EXT32000000034503
    Any more Info?
    Edited by: a®s on Feb 19, 2008 8:58 AM

  • Link the document in content repository with gos

    Hello,
    We need to display the document created by cv01n in gos --> attachment list.
    The document gets created in cv01 and there is an attachment to it which gets stored in table DMS_CONT1_CD1. We need to display this attachment in attachment list of gos in transaction migo.
    Is it possible through configuration or we need to develop something?
    thanks in adavance,
    Beena.

    Hello Andrew,
    You can right-click in open space to the right of the bottom row of icons to change the icons. Next select MORE TOOLS. In the File Toolbar, check the box for Email and this should solve the problem. Why SAP did not default this checkbox I will never know.
    Thanks,
    Tim

  • GOS attachment link

    Hi,
    My Problem is i have two different GOS for two object.
    I want to attach all attachment of one GOS to another GOS.
    Itried this code but not working.
    GOS1
        wa_obj-objtype = 'BUS2001'. " Ordem de manutenção
        wa_obj-objkey  = g_OBJ-OBJKEY.
    *GOS2
        wa_doc-objtype = 'ZGOS'.
        wa_doc-objkey  = 'Manish'.
        G_relationtype = 'ATTA'.
        CALL FUNCTION 'BINARY_RELATION_CREATE'
             EXPORTING
                  obj_rolea      = wa_doc
                  obj_roleb      = wa_obj
                  relationtype   = G_relationtype
             EXCEPTIONS
                  no_model       = 1
                  internal_error = 2
                  unknown        = 3
                  OTHERS         = 4.
    i want to see all attachment of  GOS1 to GOS2.
    thanks

    Hi,
    This is not solving my problem.
    I have created two different GOS for Two different users.
    Now i want to merge Attachments added by one user in others..
    thanks pls reply......

  • GOS Archive Link

    Hi'
    I need to store the files created in GOS -> Create attatchment on a seperat archiving system. Can this be done with out extensive programming?
    An other solution is to use "Store business Documents", but with the filename instead of "Document type". Can it be done, and how?
    Kind regards
    Mikkel
    Message was edited by: Mikkel Iversen

    use KPRO for this

  • Links gose to new window instead of adding as tabs even I chose not to in preferences

    Whenever I click any links, it opens new windows instead of new tabs on existing window as used to be even I deselected the "open new window in a new tab instead" at the preferences. It's started from new Firefox 4.0.

    ''Chinamoon [[#question-1046902|said]]''
    <blockquote>
    Because of my work I have to be free to set side by side images and for that I need only windows no tabs - some work resolutions does not work in tabs - I am going crazy trying to do that since all the options I have tried so far are null.
    </blockquote>
    I had that add on and it didn't solve the problem. I cannot put two
    tabs side by side to compare slides. I hate to go back to IE but so far outside no longer supported Safari is the only answer. Thank you anyway.
    China

  • GOS - Create attachment - how to rmove those documents and link the to BDS

    Hi all
    When using GOS - create attachment, the documents gets saved to the database. How can i extract or move those documents over to BDS and store it in KPRO.
    Any ideas will be great.
    Pierre

    Hello! I need same. Specially, to use methods form CL_BDS_DOCUMENT_SET class with GOS documents.
    Some help?
    Thanks on advance.
    Emanuel

Maybe you are looking for

  • Satellite L50-A-19N HDD upgrade question

    Hi, I would like to upgrade the standard HGST HDD to a faster Seagate SSHD, and the problem is that in this model L50-A-19N there is no HDD cover, the whole laptop bottom must be removed like in this Link: [Video|http://www.youtube.com/watch?v=IG0lW7

  • PPPoE  connection for airport!  please help!!!

    please please if anyone can help me! I have a 17` pb . i made an internet connection using PPPoE..... when i connect my cable directly the customer service told me to do the following; make a new location for network/ then in TCP/IP ip adress- 10.0.0

  • Using Itunes on multiple users (windows XP)

    I have a computer and I have a lot of music I play in Itunes on my user but when a member of my family gets on their user name Itunes is empty, no music, how can I get it so Itunes has the music for all the users to listen too? Dell 4600   Windows XP

  • Purchase order form: external send (mail)

    Hi experts when creating a purchase order, if the medium used is external  send, the system generates a mail with the purchase order form. What I would like to know if it is possible to customize the system in order to specify the subject of the mail

  • Word Document with Pictures to PDF

    When I try to make a pdf from a Word document that contains pictures, the pictures show up in Acrobat in sections -- not as one piece. I've tried printing to Distiller and printing to PDF. What is causing this?