Attachment List details

Hi all,
I am using cl_gos_manager (using custom SW01 object ) to attach files to a custom dialog program. My requirement is i am writing a report that list the document number and number of attachments attached to that document number.
Example
Document No.  10001
Attachment file name : abc.doc
Document No.  10002
Attachment file name : bcd.doc
Document No.  10003
Attachment file name : cde.doc
By requirement is i could not find the link between document number and name of attachments.
Is any function module available that displayed the list of attachment attached to a document number.
Thanks
aRs

Hello,
I am also trying to view list of attachments in SAP.
Can you please provide me with further details on how you used that FM?
Any code sample is highly appreciated.
Thanks,
-TR

Similar Messages

  • CV01N - Attachment List and Originals

    Hello everyone,
    I'd like to know what's the difference, within the transactino CV01N/CV02N, between:
    1) Create Attachment from the Generic Object Services Menu (icon in the upper left corner)
    2) Originals Tab (where I can attach files to the document being created/modified)
    In particular, I tried to attach a file through the Generic Object Services Menu and it appears in the attachment list for that specific object. However it doesn't show in the originals tab.
    Thank you for clarifying this for me.
    Regards

    Hi,
    basically the Attachment list in the generic object services (GOS) area and the originals area or tab in CV01N, CV02N, CV03N is not related. These are two separate functional areas.
    GOS Attachment list:
    This attachment list can be found for nearly all object (document info record, material master,euqipments,...) and allows you to add specific files to the object and store them by archivelink technique.
    Original tab in DMS:
    This area is something DMS specific and allows you to store original files to the document info records. This original files are normally stored in a content server and from DMS point of view you will have more functionalities as when you add the files to the attachment list. For detailed information please see the following link to the SAP online documentation:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/1c279c43c711d1893e0000e8323c4f/frameset.htm
    Best regards,
    Christoph

  • Loading TXT documents in attachment list

    Hi,
    I have got a program that loads documents from a directory against the relevant PO so they appear in the attachment list when viewing the PO. My problem is for TXT documents when I try to open them they open with internal SAP editor rather than notepad. This would be okay but it does not open with correct alignment. Am I able to control what application is used to open the txt attachment and if so how?
    your help would be much appreciated and I am happy to provide further details if required.
    Thanks,
    Neera.

    I should add that I'm using Eclipse , and as such my web service seems to be self contained in my workspace for Eclipse. The structure is
    EclipseWorkspace -> myProject -> projectNamespace -> *.java
    I thought I could place my *.txt files inside the namespace directory with my Java files. I have also tried placing the *.txt file in the project directory, still no luck.

  • 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.

  • Attachment List display in a report

    Hi,
    I want to display an attachment list related to a transaction ( for eg IMA3N ) in an ALV/Classical report. How can I go about doing this ?
    Thank You
    Rajesh

    Hello all,
    Thanks to Raja's help and advice, I was able to retrieve the list of attachments using FM BDS_ALL_CONNECTIONS_GET.
    I am actually now looking into displaying the contents of the attachments when I double click on the name of the attachment in the ALV structure.
    Does anyone know a solution to achieve that? A detailed explanation would be greatly appreciated as I am fairly new to SAP.
    Thanks

  • Reporting on the Attachment List

    Hi,
    I would like to know how we could access and report details about the attachment list in IQ03 transaction.
    Regards,
    RK

    Welcome to SCN.
    Use SO_DOCUMENT_READ_API1 and pass with DOCUMENT_ID value from SRGBTBREL-INSTID_B
    Please check the table SRGBTBREL and field INSTID_A you can find your IQ03 document number .
    make a search on this field and get INSTID_B and call function module above said.

  • 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

Maybe you are looking for