<?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: accessing attachments from 'services for object' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2396905#M533596</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 check the following method to get binary data from GOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;is_object-instid = v_bo_id.&lt;/P&gt;&lt;P&gt;is_object-typeid = v_botype.&lt;/P&gt;&lt;P&gt;is_object-catid = 'BO'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;call method cl_binary_relation=&amp;gt;read_links_of_binrel&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;is_object = is_object&lt;/P&gt;&lt;P&gt;ip_relation = 'ATTA'   " &amp;lt;&amp;lt; I think it will ATTA or  MESSAGE i am confused&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;et_links = et_links.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;then use&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'SREL_GET_NEXT_RELATIONS'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    object               = lo_is_object_a&lt;/P&gt;&lt;P&gt;     ROLETYPE             =&lt;/P&gt;&lt;P&gt;      relationtype         = p_reltyp&lt;/P&gt;&lt;P&gt;     MAX_HOPS             = 1&lt;/P&gt;&lt;P&gt;     INCL_APPLRELS        = ' '&lt;/P&gt;&lt;P&gt;     EXCL_ROLES           =&lt;/P&gt;&lt;P&gt;     EXCL_RELATIONS       =&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      links                = lt_links&lt;/P&gt;&lt;P&gt;     ROLES                =&lt;/P&gt;&lt;P&gt;     APPLLINKS            =&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     internal_error       = 1&lt;/P&gt;&lt;P&gt;     no_logsys            = 2&lt;/P&gt;&lt;P&gt;     others               = 3&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if not worked then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fm BDS_BUSINESSDOCUMENT_GET_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap&lt;/A&gt;&lt;EM&gt;-&lt;/EM&gt;Sending&lt;EM&gt;GOS&lt;/EM&gt;attachments&lt;EM&gt;to&lt;/EM&gt;an&lt;EM&gt;email&lt;/EM&gt;address&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 16:41:37 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-06-19T16:41:37Z</dc:date>
    <item>
      <title>accessing attachments from 'services for object'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2396904#M533595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been tasked with extracting data from external attachments from the 'services for object' button.  I am working in an sap 4.7 environment.  I have not found any tips on how to do this from google searches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example.  If you look at most of the major documents (purchase order, invoice, delivery, etc.) there will be a little dropdown icon in the upper left corner of the screen (check out page 1 of this file - &lt;A href="http://www.le.ac.uk/mis/docs/sapdocs/ug/UG5-1%20Services.doc)" target="test_blank"&gt;http://www.le.ac.uk/mis/docs/sapdocs/ug/UG5-1%20Services.doc)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That icon is the 'Services for Object' button.  Clicking on it will display a small popup window with several options including one for attached documents.&lt;/P&gt;&lt;P&gt;If an attachment (could be word, excel, pdf, URL, etc.) exists it will show up and can be viewed by double clicking on it.  Does anyone know how to access&lt;/P&gt;&lt;P&gt;that attachment programatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glenn Allen&lt;/P&gt;&lt;P&gt;Software Architect (specializing in SAP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 12:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2396904#M533595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: accessing attachments from 'services for object'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2396905#M533596</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 check the following method to get binary data from GOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;is_object-instid = v_bo_id.&lt;/P&gt;&lt;P&gt;is_object-typeid = v_botype.&lt;/P&gt;&lt;P&gt;is_object-catid = 'BO'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;call method cl_binary_relation=&amp;gt;read_links_of_binrel&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;is_object = is_object&lt;/P&gt;&lt;P&gt;ip_relation = 'ATTA'   " &amp;lt;&amp;lt; I think it will ATTA or  MESSAGE i am confused&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;et_links = et_links.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;then use&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'SREL_GET_NEXT_RELATIONS'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    object               = lo_is_object_a&lt;/P&gt;&lt;P&gt;     ROLETYPE             =&lt;/P&gt;&lt;P&gt;      relationtype         = p_reltyp&lt;/P&gt;&lt;P&gt;     MAX_HOPS             = 1&lt;/P&gt;&lt;P&gt;     INCL_APPLRELS        = ' '&lt;/P&gt;&lt;P&gt;     EXCL_ROLES           =&lt;/P&gt;&lt;P&gt;     EXCL_RELATIONS       =&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      links                = lt_links&lt;/P&gt;&lt;P&gt;     ROLES                =&lt;/P&gt;&lt;P&gt;     APPLLINKS            =&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     internal_error       = 1&lt;/P&gt;&lt;P&gt;     no_logsys            = 2&lt;/P&gt;&lt;P&gt;     others               = 3&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if not worked then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fm BDS_BUSINESSDOCUMENT_GET_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap&lt;/A&gt;&lt;EM&gt;-&lt;/EM&gt;Sending&lt;EM&gt;GOS&lt;/EM&gt;attachments&lt;EM&gt;to&lt;/EM&gt;an&lt;EM&gt;email&lt;/EM&gt;address&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 16:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2396905#M533596</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-06-19T16:41:37Z</dc:date>
    </item>
  </channel>
</rss>

