Q: BAPI/FM Attachment list

Hi all,
I'm struggeling for a while with this question and I havn't found a solution yet.
Using transaction FBL1N, people of accounting can enter a vendor code and search for Vendor Line Items.
By viewing the details of a certain line, they can select "services for object" and select "attachment list" to view a list of archive objects (like ea. Scanned documents, ...)
Is there a BAPI (or FM) to fetch these attachment lists?
I've already found BAPI_DOCUMENT_GETOBJECTLINKS, but I don't really know how to use it (what do they mean by documentpart and documentversion?).
Are there any other (better) BAPI's or FM's to get those attachment lists?
Or perhaps the tables where to find the data to create a custom FM?
Many thanks in advance.

Hi all,
Thanks for all the suggestions.
I've found a solution (thanks to the tips by Naveen Prabhakar  ).
The link between the accounting documents and the archive objects -> BKPF-AWKEY = TOA01-OBJECT_ID on our system.
I'll write a custom FM wich searches for the OBJECT_ID.
Thanks very much all.

Similar Messages

  • Attachment list - Unable to open document

    Hi all,
    I archive TIF image of Account Payable documents via the BAPI Archiv_Create_Synchron_Meta which create attachments to the SAP documents.
    When I go to the transaction code FB03, I open one of my documents and, in "Attachment list", I find my archive in the attachments.
    But, when I double-click on it, an error message appears and says: "UNABLE TO OPEN DOCUMENT".
    BUT I have also tried to attach DOC, XLS, PDF and I CAN open it easily!
    I have one entry for each doc type in transaction OAC0.
    What's the matter ?
    Thanks for your help.
    Yohan

    In firefox go to Tools>Options>Applications. Find Portable document format (PDF), click the drop-down next to it and choose "Use Adobe Reader.

  • Show originally filename in attachment list (generic object services)

    Hello everybody,
    does anybody know, if it is possible to show the originally filename of a document in the attachment list of generic object services?
    If I add more than one document for the same document type in generic object services, I'm not able to distinguish the documents.
    When I want to save an attachment to local PC, SAP offers me the originally filename as default. Therefore, the filename has to be saved somewhere...
    Thanks for any help or ideas in advance,
    Peter

    Richard,
    Your using the wrong object, I don't have access to an SAP system right now, so I can't tell you what the correct object is, but when it's configured correctly in OAC3 it will not be grey out.  Best thing to do it see what the object the program is publishing.  This is what GOS is looking for.  IFARCH21 is not the answer, unless your using workflow

  • In Attachement List Services for Objects White Screen when I Display a Note

    Hi Expert,
    Need your assistance.
    I am trying to view a note in Vendor Master data but no information provided and I can only see white screen. Below are the steps that I performed:
    1. Go to FK03
    2. Open a Vendor
    3. Click the Services for Objects
    4. Attachement List
    5. Select a Note
    4. Display it
    5. Pop up window appreared and no information occurred. Only White screen
    Is there's a missing configuration, plugin, or data in my SAP system/workstation?
    I tried to login to other PC and it worked.
    Just wondering what is missing on my computer.
    Your response will be helpful.

    Hey,
    I have the exact same problem as you have described. I also used my ipod as a watch but starting from today, whenever I unlock it the screen turns white until a reset is done. Even a factory reset through itunes didn't fix it.
    Have you found any solution?
    Bah, this is annoying.
    //Gubbar

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • Disable 'Delete' button for posted invoices  in GOS Attachment List

    Hi,
    when i open the attachement list of a generic object i see the attached files. In this dialog i want to disable the   "Delete" ( attachment)  button  for Posted invoices ( In MIR4 tcode -> If the invoice is already posted it should not allow to delete the attachment )
    I read oss notes and some ides of copying diverse classes but nothing really helps.
    I found two badis
    GOS_SRV_REQUEST
    GOS_SRV_SELECT
    but i dont know where we have to write our code .
    I read so many posts related to attachments but all the places described about authoriztion object .
    Can you please give some ideas to disable the delete button for posted invoices.

    Hello,
    For GOS there is no SAP Standard authorization concept. The only way to
    manage GOS authorizations is implementing it via custom code as
    described in SAP Note: 491271.
    Please have a look at the SAP notes:
    491271 Authorizations for generic object services
    701609 Authorizations for services: Final classes
    For the use of S_OC_ROLE: this object states if a user is an office
    administrator he can create, modify or delete every document, even
    those created by other users. If the user is not an office admin, the
    user is still able to create his own attachments.
    Regarding to the issue, there is an role object S_GUI for upload.
    To match your inquiry, pleaes find the user's role and active the
    object S_GUI.
    Regards,
    David

  • Disabling 'Change' and 'Delete' button in Attachment List in ME52N

    Hi Friends,
    The reuqirement is this:
    A user attaches doucments  ( using the Generic Object Services to attach document ) while creating/changing Purchase Requisition (ME51N / ME52N).
    Now when any user goes to see the docuemnts attached to the PR, he selects the 'Attachement List' from the context menu, he should only be able to read it and should not be allowed to change or delete the document. For this we need to disable the 'change' and 'delete' buttons from the toolbar.
    Awaiting your response.......
    Regards,
    Fawaz

    Hi,
    Probably you have uncommented the call to super class when you reimplement the method on child class (z class)
    I just implement the same thing now and it worked for me. Take a look:
    1 - Modify the SGOSATTR table by SM30, just write a Z class (in my case CL_GOS_SRV_ATTACHMENT_CREATE) .
    2 - Create/inheridt a subclass (not a copy) in SE24 of the standard class.
    3 - Implement the method CHECK_STATUS in the z class. Note that the call to method on super class came commented. You only uncomment if you want to also execute a standard code in the super class.
    Here is my code:
    method CHECK_STATUS.
    NOTE - In my real implementation I have uncommented the code below because I want do standard code be executed before my own check.
    *CALL METHOD SUPER->CHECK_STATUS
    EXPORTING
       IS_LPORB  = IS_LPORB
       IS_OBJECT = IS_OBJECT
    IMPORTING
       EP_STATUS = EP_STATUS
       EP_ICON   = EP_ICON
      Check for BUS2012 = Bussinnes Object for Purchase Order
      IF IS_LPORB.TYPEID = BUS2012
      Check authorization and disable create attachment item if the user does not have authority...
    IF IS_LPORB-TYPEID = 'BUS2012'.
    AUTHORITY-CHECK OBJECT 'Z_MM001' ID 'ACTVT' FIELD '01'.
      IF sy-subrc <> 0.
        ep_status = mp_status_inactive.
      ENDIF.
    ENDIF.
    endmethod.
    Regards,
    Alexandre

  • Changing the Attachment List of Generic Object Services (GOS)

    Dear Experts,
    i want to add columns to the attachment list of GOS depending of the given objecttype. The data to be displayed is from a customer-append of different TOAXY-tables. I want to use the functionality of the standard attachmentlist, but the type of the displayed table is defined as SGOS_ATTA and cant be reached directly because of the data-encapsulation.
    Is there anybody with experience in changing the attachment list in the above mentioned way?
    Do i have to modify all the used classes of the attachmentlist, or are there any customer-exits/badis that can help me to reach my goal?
    Or should I implement my own service from the scratch?
    I hope you can help me, i searched the web for about 3 days now...

    I found following Solution:
    I copied the following classes and changed them in some way to fit my requirements:
    1.CL_GOS_ATTACHMENTS
    2.CL_GOS_SRV_ATTACHMENT_LIST
    3.CL_LIST_BROWSER
    Changes to the Classes:
    1.Type of the attribute GO_INSTANCE changed to ZCL_GOS_ATTACHMENTS.
       Changed method INIT_BROWSER:
    go_browser ?=
        zcl_list_browser=>zcreate_browser( cl_browser=>gc_list_browser ).
    2.Type of the attribute GO_ATTACHMENT_LIST changed to ZCL_GOS_ATTACHMENTS
    3. Copied Method CREATE_BROWSER of Class CL_BROWSER to ZCREATE_BROWSER:
    method zcreate_browser.
      case ip_btype.
        when gc_list_browser.
          *create object ro_browser type zcl_list_browser.*
        when gc_tree_browser.
          create object ro_browser type cl_tree_column_browser.
        when others.
          raise exception type cx_sobl_browser
            exporting
              gp_error = cx_sobl_browser=>gc_wrong_type
          exit.
      endcase.
    endmethod.
    Modified the code of method ___DISPLAY to my needs.

  • Attachment List in Generic Object Services disabled

    I want to attach documents to a work centre (transaction CR02, business object BUS0011). This has been configured so that the document will reside in the content management server and will be accessed using Archivelink. I can successfully store the doc using trasnaction OAWD, and can then retrieve the doc using transaction OAOR. The links are correctly created in table TOA03.
    However, when I try and view the docs from the Generic object services button for transaction CR02 the "Attachment List" link is greyed out.
    I've just set this up for invoices (object BKPF) so can't understand why this hasn't worked for work centres. 
    I've implemented the interface IFARCH21 for BUS0011, and this hasn't resolved the issue.
    Any ideas?
    Thanks
    Richard

    Richard,
    Your using the wrong object, I don't have access to an SAP system right now, so I can't tell you what the correct object is, but when it's configured correctly in OAC3 it will not be grey out.  Best thing to do it see what the object the program is publishing.  This is what GOS is looking for.  IFARCH21 is not the answer, unless your using workflow

  • How to edit the text in the attachment list in MM02 through Program

    Hi,
            I want to update the attachment list for the material.
    i.e, MM02 - > Services for object - > attachment list - > "I have 2 items".
    For the the first item, there will be some text is availble. Now my requirement is to update the text.
    For your reference,
    While creating material, the GOS is used to create the items in the attachment list, the code is
      *swc_create_object lv_message 'MESSAGE' lwa_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' 'Certification file path'.*
                    *swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.*
                    *swc_set_element lt_message_container 'NO_DIALOG'     'X'.*
                    *swc_set_element lt_message_container 'DOCUMENTNAME'  'MESSAGE'.*
                    *swc_set_element lt_message_container 'DOCUMENTTYPE'   'URL'.*
                    *CLEAR lv_url.*
                    *REFRESH lt_doc_content.*
                    *lv_url = lwa_data1-url.*
                    *CONCATENATE '&KEY&' lv_url INTO lv_url.*
    **---appneding URL contents to the table*
                    *lt_doc_content = lv_url.*
                    *APPEND lt_doc_content.*
                    *swc_set_element lt_message_container 'DocumentContent' lt_doc_content.*
                    *swc_call_method lv_message 'CREATE' lt_message_container.*
    **** Refresh to get the reference of create 'MESSAGE' object for attachment**
                    *swc_refresh_object lv_message.*
    **** Get Key of new object**
                    *swc_get_object_key lv_message lwa_message_key.*
    *** Now we have attachment as a business object instance. We can now**
    *** attach it to our main business object instance.**
                    *CLEAR: lv_is_object_a,*
                           *lv_is_object_b.*
                    *lv_is_object_a-instid = lwa_hdr_data-material.*
                    *lv_is_object_a-typeid = 'BUS1001006'.*
                    *lv_is_object_a-catid  = 'BO'.*
                    *lv_is_object_b-instid = lwa_message_key.*
                    *lv_is_object_b-typeid = 'MESSAGE'.*
                    *lv_is_object_b-catid  = 'BO'.*
                    *CLEAR lv_reltype.*
    ***      IF lwa_data-url IS NOT INITIAL.**
                    *lv_reltype = 'URL'.*
    **---creating URL for the Material.*
                    *TRY.*
                        *CALL METHOD cl_binary_relation=>create_link*
                          *EXPORTING*
                            *is_object_a            = lv_is_object_a*
    ***    IP_LOGSYS_A            =**
                            *is_object_b            = lv_is_object_b*
    ***    IP_LOGSYS_B            =**
                            *ip_reltype             = lv_reltype.*
                      *CATCH cx_obl_parameter_error .*
                      +**CATCH cx_obl_model_e

    Please close this thread.Open new thread in forum [SAP Community Network Forums » ABAP Development » ABAP, General |;

  • Enable 'Attachment List' in IW21/22/23 - Notification

    Hi All,
    I am trying to enable the link 'Attachment List' from 'Services for Object' in transaction codes: IW21/IW22/IW23. After clicking on this link, i need to display all the email attachment available to the particular notification in the popup which will appear on the screen. I want to enable below marked link.
    Can anyone suggest how to achieve this..
    Thanks,
    Ketan

    Hi Ketan,
    It looks to me an issue with missing authorization.
    Refer SAP note below for required objects to have them enabled
    491271 - Authorizations for generic object services
    Hope this helps.
    Regards,
    Deepak Kori

  • VF03 - Services of Object - Attachment List - Send Email

    Dear All,
    I have following requirement and need help on this.
    Step1: Go the Transaction code u2018VF03u2019, give the Billing document and press u2018Enteru2019.
    Step2: In the next screen, we will be on the screen u2018Standard Invoice XXXXXXXX (ZSOR) Display: Overview of Billing Itemsu2019.
    In this screen, click Icon u2018Services for Objectu2019 (just below u2018Enteru2019 Icon). We will find the popup consists of Create, Attachment List, Private note, Send, Relationships, Workflow, My Objects and Help for object services.
    Click u2018Attachment Listu2019, popup appears consists of attached documents. This documents need to be attached and send via email to the specific person.
    Need inputs on the above requirement.

    User will execute VF01/VF02 and would like to see the email will generate along with the billing document for the output type ZRDO to ZRD4.
    Even if he executes the VF31 also, functionality will work to send the email along with the attachments.

  • Attachment list is not visible

    Dear all
    I have connected an external server to SAP.
    Created repository and created Doc types (say for ex : ZFIINV, ZMM DRW) and created entries using tcode OAC3
    now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
    now i have created entries for my scanned docs in table TOA01.
    i can search an display these docs which are already placed there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
    for example in BO : BKPF attachment list i cant see al the link entries .
    please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
    thanks sandeep

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • Attachment list for business objects is not visible

    Dear all
    I have connected an external server to SAP.
    Created repository and created Doc types (say for ex : ZFIINV,  ZMM DRW) and created entries using tcode OAC3
    now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
    now i have created entries for my scanned docs in table TOA01.
    i can search an display these docs which are already placed  there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
    for example in BO : BKPF  attachment list i cant see al the link entries .
    please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
    thanks sandeep

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • Attachment List option in PR , SO and NOTIFICATION etc

    Hi All,
    The Create ,Attachment List option in generic object services (GOS)
    doesn't work sometimes in Purchase requisition(ME52N and ME53N) , Sales Order , Notification etc.
    The (Services for Object ) Button is always Visible however the Create
    Attachment , Attachment List and other options will not be Visible to the
    users.This happens sometimes with all the users, however after a while
    all the options will be available.
    We are facing this issue since last 3-4 weeks.
    Thanks and Regards
    Mahesh

    ask your basis team if they have changed some settings, maybe you loose connection to the content repository.

Maybe you are looking for

  • New to OOP Java syntax

    Hello there, I'm new here and I'd be thankful if you help me a bit with my self introduction to Java. I'll write down a source of main and hope you will tell me my beginner's problems: import java.util.*; //public int createdInstances = 0; public cla

  • 'commit' in execute immediate...

    Hi folks I am writing a proc which removes a lot of data from different tables. I am parsing a string into variable like: declare v_i1 pls_int:=1; begin while v_i1 > 0 loop delete table 1 where .... and rownum<30000; v_i1:=sql@rowcount; commit; end l

  • Problems downloading movies on iPad?

    I am having problems downloading video to my iPad from the iTunes store directly on the device, not from my computer. Every time I tap buy or rent, a message shows up saying I don't have enough storage space. I have a 16gb Wifi version and about 2gb

  • How to create resized image instance from an existing image

    It looks like the image class does not provide a possibility to create a resized instance. Image#impl_getURL() would be good enough to create a resized instance of an existing image - but could be removed in a future release. So what's the preferred

  • Business Consolidation - How to Guides..??

    Hi, Can anyone send me the link for business consolidation guies, weblogs or any other good material to read...i searched sdn but did'nt find anything.. regards abhinav