<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Saving GOS attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264025#M1632401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me if i can get all kind of attachment(like .JPEG, .PDF, .txt, .doc) with your method and can we save these files to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen will ask for purchase order numbers in bulk lets say 100 POs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after executing the program i should be able to download the PO output to application server in PDF format.&lt;/P&gt;&lt;P&gt;along with this i need all the attachment to all the POs to be saved in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me whether this is possible in 4.6c. Thanks a lot in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 12:29:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-28T12:29:51Z</dc:date>
    <item>
      <title>Saving GOS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264023#M1632399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our client is using 4.6c system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to download PO attachment with GOS functionality. I tried using FM BDS_GOS_CONNECTIONS_GET in 4.6c system. But this FM is not present in 4.6c System. Is there any other way of downloading PO attachment without using above Fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 10:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264023#M1632399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T10:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving GOS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264024#M1632400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the below code to get attachment from GOS for Pur Order .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_bo_id = w_ebeln. &lt;/P&gt;&lt;P&gt;        lo_is_object_a-instid = w_bo_id. &lt;/P&gt;&lt;P&gt;        lo_is_object_a-typeid = '     '. "Please find the BOR for Por Order Using Trace &lt;/P&gt;&lt;P&gt;        lo_is_object_a-catid = 'BO'. &lt;/P&gt;&lt;P&gt;        wa_rel-sign = 'I'. &lt;/P&gt;&lt;P&gt;        wa_rel-option = 'EQ'. &lt;/P&gt;&lt;P&gt;        wa_rel-low = 'ATTA'. &lt;/P&gt;&lt;P&gt;        APPEND wa_rel TO t_rel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_binary_relation=&amp;gt;read_links &lt;/P&gt;&lt;P&gt;          EXPORTING &lt;/P&gt;&lt;P&gt;            is_object           = lo_is_object_a &lt;/P&gt;&lt;P&gt;            it_relation_options = t_rel &lt;/P&gt;&lt;P&gt;          IMPORTING &lt;/P&gt;&lt;P&gt;            et_links            = t_links. &lt;/P&gt;&lt;P&gt;        LOOP AT t_links INTO wa_links WHERE typeid_b = 'MESSAGE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CLEAR : w_doc_name,w_doc_type,t_content. &lt;/P&gt;&lt;P&gt;          MOVE wa_links-instid_b TO wa_document_id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'SO_DOCUMENT_READ_API1' &lt;/P&gt;&lt;P&gt;            EXPORTING &lt;/P&gt;&lt;P&gt;              document_id                = wa_document_id &lt;/P&gt;&lt;P&gt;            TABLES &lt;/P&gt;&lt;P&gt;              object_header              = t_header &lt;/P&gt;&lt;P&gt;              contents_hex               = t_content &lt;/P&gt;&lt;P&gt;            EXCEPTIONS &lt;/P&gt;&lt;P&gt;              document_id_not_exist      = 1 &lt;/P&gt;&lt;P&gt;              operation_no_authorization = 2 &lt;/P&gt;&lt;P&gt;              x_error                    = 3 &lt;/P&gt;&lt;P&gt;              OTHERS                     = 4. &lt;/P&gt;&lt;P&gt;          IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno &lt;/P&gt;&lt;P&gt;                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. &lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 11:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264024#M1632400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T11:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving GOS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264025#M1632401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me if i can get all kind of attachment(like .JPEG, .PDF, .txt, .doc) with your method and can we save these files to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen will ask for purchase order numbers in bulk lets say 100 POs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after executing the program i should be able to download the PO output to application server in PDF format.&lt;/P&gt;&lt;P&gt;along with this i need all the attachment to all the POs to be saved in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me whether this is possible in 4.6c. Thanks a lot in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264025#M1632401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T12:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Saving GOS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264026#M1632402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't worked on 4.6C. Please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of FM SO_DOCUMENT_READ_API1, your attachemnt data will be filled in the internal table t_content for any type of file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just  try to Play with that internal table data!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balaji R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-gos-attachment/m-p/8264026#M1632402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T12:56:08Z</dc:date>
    </item>
  </channel>
</rss>

