<?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: read attachments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463298#M1554191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form read_display_attachment.

  data:
    l_objkey            type swo_typeid,
    lo_gos_service      type ref to cl_gos_document_service,
    ls_srgbtbrel        type srgbtbrel,
    lt_srgbtbrel        type srgbtbrel occurs 10.

  select *  into corresponding fields of table lt_srgbtbrel
    from srgbtbrel
    where instid_a = p_objkey
    and   typeid_a = p_objtyp
 and   reltype  = 'ATTA'.

*" Exit if no attachments found
  if lines( lt_srgbtbrel ) is initial.
    exit.
  endif.

  sort lt_srgbtbrel by utctime. 
  read table lt_srgbtbrel into ls_srgbtbrel index 1.
  l_objkey = ls_srgbtbrel-instid_b. 

  create object lo_gos_service.
break developer.
call method lo_gos_service-&amp;gt;DISPLAY_ATTACHMENT
      exporting
      ip_ATTACHMENT = l_objkey.
endform.                    "read_display_attachment
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2010 07:09:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-21T07:09:33Z</dc:date>
    <item>
      <title>read attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463296#M1554189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Can BDS_GOS_CONNECTIONS_GET FM be used to read the Attachments for Transaction FB03..? If Yes can any one help me with a sample code.. i tried it many times but could not get the results..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If This FM cannnot be used to read attachments from transaction FB03 then which is the right FM or CL to do so..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 14:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463296#M1554189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: read attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463297#M1554190</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;search the forum before posting the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 14:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463297#M1554190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: read attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463298#M1554191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form read_display_attachment.

  data:
    l_objkey            type swo_typeid,
    lo_gos_service      type ref to cl_gos_document_service,
    ls_srgbtbrel        type srgbtbrel,
    lt_srgbtbrel        type srgbtbrel occurs 10.

  select *  into corresponding fields of table lt_srgbtbrel
    from srgbtbrel
    where instid_a = p_objkey
    and   typeid_a = p_objtyp
 and   reltype  = 'ATTA'.

*" Exit if no attachments found
  if lines( lt_srgbtbrel ) is initial.
    exit.
  endif.

  sort lt_srgbtbrel by utctime. 
  read table lt_srgbtbrel into ls_srgbtbrel index 1.
  l_objkey = ls_srgbtbrel-instid_b. 

  create object lo_gos_service.
break developer.
call method lo_gos_service-&amp;gt;DISPLAY_ATTACHMENT
      exporting
      ip_ATTACHMENT = l_objkey.
endform.                    "read_display_attachment
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 07:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463298#M1554191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-21T07:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: read attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463299#M1554192</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;can you please give me the same code for Down loading Documents attached in a PO.&lt;/P&gt;&lt;P&gt;I have got a requirement to give the list and the documents&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 07:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-attachments/m-p/7463299#M1554192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T07:57:14Z</dc:date>
    </item>
  </channel>
</rss>

