<?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/2930035#M690414</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;Create a subroutine in your program and call the FM: SWU_OBJECT_PUBLISH as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWU_OBJECT_PUBLISH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      objtype           = gc_businessobj&lt;/P&gt;&lt;P&gt;      objkey            = gw_header-vbeln&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      objtype_not_found = 1&lt;/P&gt;&lt;P&gt;      OTHERS            = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will automatically display your Services for Object ICON on your report. Here in the FM, gc_businessobj is a global business object = BUS2031(defined as a constant inside the pgm) and gw_header-vbeln can be any valid document no like a sale order, inquiry, quotation etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code snippet and this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JLN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 11:35:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-24T11:35:08Z</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/2930034#M690413</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 ecc 6.0  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 &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;deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 10:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2930034#M690413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T10:48:58Z</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/2930035#M690414</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;Create a subroutine in your program and call the FM: SWU_OBJECT_PUBLISH as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWU_OBJECT_PUBLISH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      objtype           = gc_businessobj&lt;/P&gt;&lt;P&gt;      objkey            = gw_header-vbeln&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      objtype_not_found = 1&lt;/P&gt;&lt;P&gt;      OTHERS            = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will automatically display your Services for Object ICON on your report. Here in the FM, gc_businessobj is a global business object = BUS2031(defined as a constant inside the pgm) and gw_header-vbeln can be any valid document no like a sale order, inquiry, quotation etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code snippet and this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JLN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 11:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-attachments-from-services-for-object/m-p/2930035#M690414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T11:35:08Z</dc:date>
    </item>
  </channel>
</rss>

