Adding Generic Object Services attachments to PRA trans O3U_DO3

I would like to add the generic object services attachment menu that is found in vf02 - invoice create to the production and revenue accounting module transaction O3U_DO2/O3U_DO3 Maintain/Display DOI Owners.  I need the ability to attach external documents through archive link to this transaction.  If not possible with generic object services, any other suggestions on how to attach the documents is greatly appreciated.

Hi,
Welcome to the SDN Forums!!!
You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
In your case change the above statement as below:
swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
<b>OR</b> change the default value of p_msgtyp to 'PDF'.
Cheers,
Ramki Maley.
Please reward points if the answer is helpful.
For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
Message was edited by: Ramki Maley

Similar Messages

  • Create Attachments to Generic Object Services from Webdynpro appliccation

    Hi,
    I have requirement to Create Attachments  to Generic Object Services(GOS) in equipment master (IE03)  from webdynpro when a user clicks on upload button and also allow the user to delete the attachments .
    Can anyone advice me of any Function Modules or logic to use from Web GUI.
    I used below logic from R/3 to create attachments, but from webdynpro this method doesn't work.
    DATA lo_attachment TYPE REF TO cl_gos_document_service.
      CREATE OBJECT lo_attachment.
      CALL METHOD   lo_attachment->create_attachment
           EXPORTING  is_object = ls_object
           IMPORTING  ep_attachment = lp_attachment
    Your inputs are appreciated.
    Thanks
    Rajesh Yalda

    Hi,
    try using the Class CL_GOS_SRV_ATTACHMENT_CREATE with Method EXECUTE_ITS.
    best regards,
    Michael

  • Display and Manage Attachments of Generic Object Services in Webdynpro

    Hi All,
    I need to have a button in the webdynpro that when a user clicks it will pop up a table that display a list of files already attached to a Generic Object Services(GOS) and also allow the user to delete the attachments and upload new attachments.
    Can anyone advice me of any Function Modules or Methods that i can use to achieve those functions (retrive and display attachments in the GOS, delete existing attachment from GOS, upload new attachment to GOS).
    Thanks and Regards,
    weilong

    Hi
    You need to pass parameters as per the code below
    ****Data Types
      CONSTANTS:lc_dokob        TYPE dokob VALUE 'KNA1',
                  lc_dokar      TYPE dokar VALUE 'LEG',
                  lc_dappl      TYPE dappl VALUE 'BVO',
                  lc_sign       TYPE c VALUE 'I',
                  lc_option(2)  TYPE c VALUE 'EQ',
                  lc_docpart(3) TYPE c VALUE '000',
                  lc_docversion TYPE dokvr VALUE '00',
                  lc_status     TYPE dokst VALUE 'AL',
                  ls_attc-doknr    TYPE doknr,
                  ls_return TYPE bapiret2,
    *****Function Module
      CALL FUNCTION 'BAPI_DOCUMENT_DELETE_DIRECT'
            EXPORTING
              documenttype    = lc_dokar
              documentnumber  = ls_attc-doknr
              documentpart    = lc_docpart
              documentversion = lc_docversion
            IMPORTING
              return          = ls_return.
    Thanks
    Vishal

  • Attachments Activating Generic Object Services (GOS) in VA41/VA42 at item level

    Hi to All,
    I'm trying to manage attachments for sales document at item level.
    I've already read this wonderfull post (Activating Generic Object Services Toolbar in SAP Objects) but I didn't understand how manage attachments at item level.
    Please, if anyone has ideas of how to achieve it please share solutions.
    Thanks & Best Regards,
    Umberto

    Hi again,
    Thanks for the answers, they were very helpful,
    but the customer isn't happy with the "Store business Documents" and it's Drag n' drop interface.
    I'm to develop a new GOS menu item, that will show
    a normal Open File dialog, and a following popup
    where the user can change the document title shown
    in the Attachment list.
    ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_TABLE
    along with ARCHIV_CONNECTION_INSERT should probably
    cover the functionality I need.
    I know both the BOR type ID and the object ID is
    available to me in the Execute() method of the GOS menu handler I'm overriding, but for the ARCHIV_CONNECTION_INSERT, I'm supposed to supply an AR_OBJECT parameter (I know that this information is stored in the TOAOM table), but I have no clue where to get this information for the current object I'm trying to add an attachment for.
    Regards,
    Lars Wilhelmsen

  • Generic Object Services - View Attachments disabled for non admin user

    Hi,
    I am using SAP 4.7 and the attachments created using table TOA01 - archive link are visible to an administrator user through Generic Object Services toolbox while same View Attachments option appears disabled for other non admin users.
    Kindly help !

    Hi Neha,
    I'm sorry I don't have answer to your question but I wonder if you could help me.
    I'm looking at OSS note 530792 to configure GOS 'create attachment' option to copy the attachments to the archive server. currently, these are written to the SAP office tables SOC3, SOFFCONT1, etc and I want to use the archivelink and SAPHTTP and copy to the archive storage.
    Have you successfully managed to configure your system since you mentioned TOA01?
    In the same GOS menu I've activated the 'Business document' option and can copy these to the archive server by correctly configuring OAC2 and OAC3.
    I'll really appreciate of you could please share your knowledge.
    Thanks.
    Soyab

  • Generic Object Services using Web Dynpro

    I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments to an SAP Business Object.  Using the cl_gos* classes does not work when running WebDynpro as it uses the controls framework. 
    How can I access the functionality of GOS from a Web Dynpro application?
    Regards,
    Bob

    Hi,
    I assume that you wantted to have the attachements in a mail.
    Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
    Regards
    Lekha

  • GOS: Generic Object Services (BC-SRV-GBT)

    Hi All,
    I have a requirement to implement GOS for our Netting document - object type OIA_BUS001, we need to link a url to our document. And I managed to get the toolbox to appear besides the gui title, using both the FM SWU_OBJECT_PUBLISH and the OO codes that was provided in the SAP help.
    But the results is not quite right - in both cases, when I click on the toolbox -> create, all the functions listed, 'Create attachement, 'create note', etc, are greyed out.
    Is there something that I'm missing here?
    That's not the least of my problems. When (being optimistic here) this ok, I need to find a way on how to update the url in the background....
    Appreciate if anybody have some pointers here.
    Regards,
    Nik

    Try the following code.
    /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
    Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    Written By : Ram Manohar Tiwari
    Function   : We need to maintain links between Business Object and
                 the attachment.Attachment document is basiclally a
                 business object of type 'MESSAGE'.In order to maintain
                 links, first the attachment will be crated as Business
                 Object of type 'MESSAGE' using Message.Create method.
                 Need to check if we can also use FM
                 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
                 than using Message.Create method.
    REPORT  Z_RMTIWARI_ATTACH_DOC_TO_BO             .
    Include for BO macros
      INCLUDE : <CNTN01>.
    Load class.
      CLASS CL_BINARY_RELATION definition load.
      CLASS CL_OBL_OBJECT      definition load.
    PARAMETERS:
    Object_a
       P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS2012', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '4700000368',  " Key  PO No.
    Object_b
       P_DOCTY  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       P_MSGTYP LIKE SOFM-DOCTP        DEFAULT 'URL'     NO-DISPLAY,
    Relationship
       P_RELTYP  LIKE mdoblrel-reltype DEFAULT 'URL'.
      types: BEGIN OF TY_MESSAGE_KEY,
              FOLTP TYPE SO_FOL_TP,
              FOLYR TYPE SO_FOL_YR,
              FOLNO TYPE SO_FOL_NO,
              DOCTP TYPE SO_DOC_TP,
              DOCYR TYPE SO_DOC_YR,
              DOCNO TYPE SO_DOC_NO,
              FORTP TYPE SO_FOR_TP,
              FORYR TYPE SO_FOR_YR,
              FORNO TYPE SO_FOR_NO,
             END OF TY_MESSAGE_KEY.
      DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
      DATA : LO_MESSAGE type SWC_OBJECT.
      DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
    line.
    First derive the Attachment's ( MESSAGE )document type.
      P_DOCTY = 'MESSAGE'.
      CASE P_RELTYP.
      In case of URls
        WHEN 'URL'.
           P_MSGTYP = 'URL'.
      In case of Notes / Private Notes
        WHEN 'NOTE' OR 'PNOT'.
           P_MSGTYP = 'RAW'.
        WHEN 'ATTA'.
           P_MSGTYP = 'EXT'.
      Not implemented as yet...exit
         EXIT.
        WHEN OTHERS.
       ....exit
         EXIT.
        ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
      swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
    define container to pass the parameter values to the method call
    in next step.
      swc_container LT_MESSAGE_CONTAINER.
    Populate container with parameters for method
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE'
                 'Title, created programatically'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTLANGU' 'E'.
      swc_set_element LT_MESSAGE_CONTAINER 'NO_DIALOG'     'X'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTNAME' P_DOCTY.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE'   P_MSGTYP.
    'DocumentContent' is a multi-line element ( itab ).
    In case of URLs..it should be concatenated with &KEY& in the begining.
      CASE P_MSGTYP.
        WHEN 'URL'.
          LT_DOC_CONTENT = '&KEY&http://www.gtservicing.com' .
          append LT_DOC_CONTENT.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
         WHEN 'RAW'.
           LT_DOC_CONTENT = 'Hi How r u?' .
           append LT_DOC_CONTENT.
    In case of File attachments
         WHEN 'EXT'.
          Upload the file contents using open dataset in lt_doc_content .
          Some conversion ( Compress ) might be required.
          Not sure at this point
      ENDCASE.
      swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
      swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
    Refresh to get the reference of create 'MESSAGE' object for attachment
      swc_refresh_object LO_MESSAGE.
    Get Key of new object
      swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
      data: LO_IS_OBJECT_A type SIBFLPORB.
      LO_IS_OBJECT_A-INSTID = P_BO_ID.
      LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
      LO_IS_OBJECT_A-CATID  = 'BO'.
    Create attachment BO object_b
      data: LO_IS_OBJECT_B type SIBFLPORB.
      LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
      LO_IS_OBJECT_B-TYPEID = P_DOCTY.
      LO_IS_OBJECT_B-CATID  = 'BO'.
    *TRY.
    CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
      EXPORTING
        IS_OBJECT_A            = LO_IS_OBJECT_A
       IP_LOGSYS_A            =
        IS_OBJECT_B            = LO_IS_OBJECT_B
       IP_LOGSYS_B            =
        IP_RELTYPE             = P_RELTYP
       IP_PROPNAM             =
       I_PROPERTY             =
    IMPORTING
       EP_LINK_ID             =
       EO_PROPERTY            =
    *CATCH CX_OBL_PARAMETER_ERROR .
    *CATCH CX_OBL_MODEL_ERROR .
    *CATCH CX_OBL_INTERNAL_ERROR .
    *ENDTRY.
    Check if everything OK...who cares!!
      commit work.

  • Generic Object Services using WebDynpro ABAP

    I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments or similar functionality for attachments in web dynpro ABAP. How can I access the functionality of attachments from a Web Dynpro application?
    Any help is appreciated.
    Thanks

    Hi,
    I assume that you wantted to have the attachements in a mail.
    Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
    Regards
    Lekha

  • Generic object services - Object services toolbox not visible in ECC 6

    We recently upgraded from SAP 4.6 C to ECC 6 and are encountering problems in the generic object services in Plant maintenance.
    We use this feature extensively in SAP 4.6 C to attach URL links, documents etc.
    In ECC6 , In Transaction IL02, IE02, IW32 when i click on the services for object, i don't find the object services toolbox through which you can attach the documents, links etc. It surprisingly disappears. Instead of that we get a toolbar to "AddFileNetImage", ViewFileNetImage, DeleteFileNetImage.
    Can this feature be added back to the screen? How is this done? kindly help.

    Thanks Deepak,
    But I thought the described methdology in the PDF pointed by the URL is for how to do it for any custom business object type, will it be useful for the SAP standard business object as well like BUS2093. When I try to edit an already created SAP object, it starts asking for an access key.
    With Regards
    Neha

  • Generic Object Services not enabled in MB23 Material Reservation

    Hi all,
    The Generic Object Services Toolbox is not available in SAP MM transaction MB23 used for accessing Material Reservations. SAP version is 4.7/620.
    As its a standard SAP transaction referring to standard business object type BUS2093, so I was expecting that the Object Services will be enabled for this.
    Kindly help as to how I can configure the display of Object Services toolbox in this transaction to link attachments. (If its regarding changing some code like including cl_gos_manager or SWU_OBJECT_PUBLISH, then kindly explain in detail.
    With Regards
    Neha

    Thanks Deepak,
    But I thought the described methdology in the PDF pointed by the URL is for how to do it for any custom business object type, will it be useful for the SAP standard business object as well like BUS2093. When I try to edit an already created SAP object, it starts asking for an access key.
    With Regards
    Neha

  • Generic Object Services Toolbox in MB23(Material Reservation) unavailable

    Hi all,
    The Generic Object Services Toolbox is not available in SAP MM transaction MB23 used for accessing Material Reservations. SAP version is 4.7/620.
    As its a standard SAP transaction referring to standard business object type BUS2093, so I was expecting that the Object Services will be enabled for this.
    Kindly help as to how I can configure the display of Object Services toolbox in this transaction to link attachments. (If its regarding changing some code like including cl_gos_manager or SWU_OBJECT_PUBLISH, then kindly explain in detail.
    With Regards
    Neha

    Thanks Deepak,
    But I thought the described methdology in the PDF pointed by the URL is for how to do it for any custom business object type, will it be useful for the SAP standard business object as well like BUS2093. When I try to edit an already created SAP object, it starts asking for an access key.
    With Regards
    Neha

  • Generic Object Services in massive transfers.

    Hi there,
    I need to massive assign pictures as attachments to fixed assets... the way to assign the pictures is using the Generic Object Services but when I try to use recordings to automatically assign the attachments this option is disabled, can anyone help..
    Thanks in advance.
    J. Valencia

    Hi,  I actually have a function module which you can use to upload attachments to the GOS.  In accepts  the object type and key as well as the file path where the image is to upload.  If you are interested, please email me at the address on my business card and I can help you further.  I can not post the code here.
    Regards
    Rich Heilman

  • Indicator for Generic Object Services

    We are planning to use the Generic Object Services functionality to
    attach Word, Excel or PDF files to existing documents in SAP. Our plan
    is to use this in Accounts Receivable. The issue we have is when we
    are looking at the open items for a customer using transaction FBL5N
    there is no way to know which open item has attachments.  Once you've selected an open item, you can view any attachments but this does not help.  I posted an OSS notes and they replied "We regret to inform you that the function you require is not included inthe SAP standard system."  Does anyone know how I pursue this to have SAP develop this functionality?
    Thank You,
    Sue Rademacher

    While this is probably answered best in the ABAP forum, by doing a search on Generic Object Services in all forum categories, I found a number of answers about enhancements with this functionality. Re: How to link proces modeling to execution of services are found in this forum thread.
    Marilyn

  • Query about generic object services

    hi,
    In the system that I'm using there's an generic object service added to a transaction through an SAP Note. The code added to that transaction through that service, I want to add it to another transaction. How do I do that.

    if you want to do it for your custom transaction, just call the following FM in PBO
    call function 'SWU_OBJECT_PUBLISH'
           exporting
                objtype           = '<obj type>'
                objkey            = ''
           exceptions
                objtype_not_found = 1
                others            = 2.
    read the FM documentation from SE37.
    if you still have doubt , get back with your questions.
    Regards
    Raja

  • Connect a Word document instance to Generic Object Services/BDS

    Hello all,
    how can I manage to get a word document created via the Doc_template step to a certain Business Object (like Business Partner). I tried to trace that but I got lost in generations of codes like archivelink, sap office, knowledge provider etc.) I guess it should not be that difficult as I have the key of the word doc instance and the key of the business partner instance. What I want at last is to have that word document linked via attachments/linked objects or something similar....
    Kindest regards from Germany,
    Markus

    Markus,
    Welcome to the forum!
    I have done this sometime ago at a past client site and will see if I can find the code.
    If I remember correctly, this involves converting the attachment to an SOFM object (using method CREATESOFM of BO WF_DOC) and then using function module BINARY_RELATION_CREATE to attach it to the BO. The links below will give you more info. Also Google for BINARY_RELATION_CREATE which should give you more links.
    Re: Link Workflow Document to BKPF object
    <a href="/people/rammanohar.tiwari/blog/2006/03/25/generic-object-services-gos--in-background--part-ii">Generic object services (GOS) - in Background - Part II</a>
    http://mailman.mit.edu/pipermail/sap-wug/2005-September/019547.html
    Cheers,
    Ramki Maley

Maybe you are looking for

  • Converting word docs to PDF's

    I have created an imaged based document size A3 in Word on my Windows machine. However, when I try to save as a PDF in Acrobat XI pro it cuts off a third of the document. I have check printing settings and have confirmed its A3, but when I do a previ

  • Consistant network repair req'd? (Neo4-f)

    After flipping through the forums I've noticed a couple of posts that were close to this issue, but not quite exactly what the problem is. In my case, every 5-15 minutes or so my network connection will just drop off, though the computer won't regist

  • CKF Not Agrigating

    Hi , I Have 3 CKF in Bex query using Date deffrence ( Date as formula var with replacement path )  to cal culate no of days and another CKF with amout with Qty. When i run detailed report i can see value in CKF but when i run Cost center wise report

  • Digital editions not working

    My digital editions has ceased working and I am unable to re -download the program.Any helpful solutions ?

  • How to print one sheet from a Numbers spreadsheet on an iPad?

    I know this has been asked before and there are some work arounds... On my iPad, I have a spreadsheet (it would be called a Workbook in Excel) comprised of a template that I duplicate and use as a data entry sheet for each individual component that I