Attachment list in Contract - required in Report

Hi All,
I want to create a report on contracts and it should display the documents in the attached in the contract (ME31K) when it is clicked. when I see in the ME33K i find that SAP is doing the same (below the command box and above the application toolbar there is a button- tool box).  This is triggered by the the EVENT and it shows all the attachment on a pop up window. The documents are stored link TOA02 and SRGBTBREL table.
Please let me know is there any FM or Class or logic to do the same in my program.
Regards,
Prabhu

hello Prabhu ......
u can make use of class :  cl_gos_manager
here the same code to all that GOS button on ur  screen/report......
create object lo_callback.
  if manager is initial.
    create object manager
      exporting
        is_object        = obj  ---> your  object key like companycode document no year.....
        ip_no_instance   = space  "Publish
        ip_no_commit     = commit "No Commit Work
      exceptions
        object_invalid   = 1
        callback_invalid = 2
        others           = 3.
    if sy-subrc <> 0.
      message id 'YFIMC01' type sy-msgty number sy-msgno
                 with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
*--- Publish GOS
    call method manager->set_id_of_published_object
      exporting
        is_object = obj.
    if sy-subrc <> 0.
    endif.
regards
Prabhu
  endif.

Similar Messages

  • Read Attachment List from Contract

    Hi Friends
    My requirement is  to read the Tile of the attachment list (In Document Services Toolbar from selected Contracts (VA42) and develop a report. I tried . FM 'SO_ATTACHMENT_LIST_READ'  but dont  know what value I have to pass to (OBJTP,OBJYR,OBJNO). Please help is there any way I can read the tilte description of the document attached to the contract.
    Thanks in Advance
    Senthil

    senthil,
    There are couple of wiki posts to connect NAST to SOST/SOOD tables (one for PO and other generic) ... Both are based on the assumption that either the truncated or full document number is stored in SOOD-OBJDES field.
    http://wiki.sdn.sap.com/wiki/display/Snippets/DisplayingoldOutputusingNASTandSOST
    http://wiki.sdn.sap.com/wiki/display/Snippets/ConnectNASTtoSOSTfor+purchaseorders
    You should be able to get the OBJTP, OBJYR and OBJNO from either of these two methods...

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

  • Link between Purchase order and Attachment list

    Hi All,
    I got a requirement like Purchase orders are from moved from one system to another system.There was a bug in BDC program
    so some Attachment list of the purchase orders are not moved properly to the another system.
                                                   Now my client want a report to generate the Purchase orders which is having attachment list.
    I did not find any table link between Purcahase order and Attachment list.
                                                  So Plz provide me the link between purchase order and attachment list.
    Thanks,
    Ram

    You mean service for object services?
    if yes then u have to create one custom report for Generic Object Services   ( like notes , attachment  , url )

  • FD03 attachment list

    Hi All ,
    My requirment is to pull data from the dropdown
    'Attachment list ' field into the report using TC : FD03 , which is for customer general data . i would like to know which table-fields we can retrieve this from....?
    Document Title , Document Type and link with customer KNA1
    Thxs,
    Piroz

    Hi Guys
    Problem solved, Thread is closed
    Regards
    Moderator message : It is not mandatory to put comments while closing old threads (unless it add some value). This brings old questions to the top of current list.
    Edited by: Vinod Kumar on Oct 17, 2011 9:49 AM

  • Hoy to print image from GOS Attachment List

    Hello all:
    I have to print images attached as JPG format in Generic Object Service Attachment List.
    For Example: One material has several pictures. I need to print all them in a individual material report.
    The report is Smartform.
    Any Idea how to do that?
    Than you very much.
    Ibrahim Andres

    Hi Eray,
    I have come across an similar requirement, Can you please share the solution for your mentioned requirement.
    Thanks,
    Mansi

  • Displaying the list of values in the Report

    Hi All,
    Is there any possibility to include the scrollable list on the face of report(Not in the left side i.e as input control)
    For example If I have a country with different counties.
    Based on the country selection in the block it should display the list of counties as scrollable list.
    Would it be possible.
    Please help
    thanks
    Edited by: VP S on Sep 1, 2010 2:45 PM

    Not sure if you are looking for the same..
    Have you tried applying the filter at the filter pane..i.e.
    Click on the the show\hide filter pane (filter icon is present nearby the drill icon)
    Now drag the required object on this pane.
    It will create the dropdown filters on top of the report.
    Regards,
    Rohit

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

  • 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 in Services for Object toolbar

    Does anybody know if there is any user exit or BADI that I can use to filter certain file attachments in Attachment list of Services for Object toolbar.
    For example, in transaction XK03 (Vendor display), Services for Object toolbar, you can see the Attachment list and it will display list of pc file attachments, however, we have a requirement to display only those that met certain criteria, is there any BADI or user exit for this?
    Thanks in advance for your help.

    you can use BADI
    GOS_SRV_SELECT
    for this.
    Regards
    Raja

  • Attachement List - Table Name

    Dear All,
    we are using the attachment list in the sales order that can be reached via "Services for Objects". We are then archiving all order confirmations and they are then displayed in this attachement list. I now want to crate a report that shows me all orders where this attachements are missing. The problem is that I do not find the table where I can see the link from the archived object to the sales order.
    Can somebody help me with that?
    Thank you very much.
    best regards,
    Markus

    Hi Markus,
    Through Generic Object Services icon, you can store the documents using Archive link (via Store Business Document) or GOS (via Create Attachment).
    Refer to the link below. It explains the relationship between the tables for both scenarios.
    http://wiki.sdn.sap.com/wiki/display/PLM/SAPContentManagement-LinkbetweenSAPObjectsand+originals
    Follow the option which you are using to attach the documents.
    Cheers
    Amit

  • Calling :  FB03 - Customer Line Item - Attachment List Pop UP

    I want to call the attachment pop-up in my Z Report interactive report .
    I am showing document numbers in alv output list.
    now upon clicking the document i want to show directly the pop-up of 'attachment list' window .... how to do this...
    Normally we can see the same like this :
    1.  Run FBL5N
    2.  select one document number ( double click )
    3.  "Click Services for object " -> Attachment List
    Regards,
    Ramesh

    Hi,
    You can have an interactive report, to goto the document directly when you are clicking on the document number. However if you automatically want to go to the Services for the object, I have no idea. I dont even think it is possible. However if you can discuss with a BASIS guy, he may be able to help you on this.
    I checked this. The services are enabled only when you get into the transaction code for any SD object say order or delivery. Until then, the services for object is not even seen. So I think there is a relationship between services and the transaction code.

Maybe you are looking for