<?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: Reading Attachments from T-code VF03 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-attachments-from-t-code-vf03/m-p/7649194#M1572977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try something like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
***    get the selected invoice
    read table t_final into w_final index e_row_id-index.
    clear pdf.
**    get the documents attached
    select    instid_b  from srgbtbrel into  table t_obj_key where  instid_a = w_final-vbeln
                          and typeid_a = 'VBRK' and
                           catid_a = 'BO'
                          and reltype = 'ATTA'.

    loop at t_obj_key into w_obj_key.
      wa_folder_id =  w_obj_key(17).
      wa_object_id = w_obj_key+17(18).
      clear wa_sood2.
***      get the file details
      call function 'SO_OBJECT_READ'
        exporting
          folder_id         = wa_folder_id
          object_id         = wa_object_id
        importing
          object_hd_display = wa_sood2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 14:53:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-28T14:53:19Z</dc:date>
    <item>
      <title>Reading Attachments from T-code VF03</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-attachments-from-t-code-vf03/m-p/7649193#M1572976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to download all the attachments from T-code VF03 into my 'Z' program, I searched SDN a lot and I came to know that FM 'SO_OBJECT_READ'  can be of some help. However, I could not understand how exactly I need to pass the parameters to it. Can I get some help how to use the FM 'SO_OBJECT_READ'  or if there is any other way to download the attachments from VF03 into custom program?&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;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 13:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-attachments-from-t-code-vf03/m-p/7649193#M1572976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T13:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Attachments from T-code VF03</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-attachments-from-t-code-vf03/m-p/7649194#M1572977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try something like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
***    get the selected invoice
    read table t_final into w_final index e_row_id-index.
    clear pdf.
**    get the documents attached
    select    instid_b  from srgbtbrel into  table t_obj_key where  instid_a = w_final-vbeln
                          and typeid_a = 'VBRK' and
                           catid_a = 'BO'
                          and reltype = 'ATTA'.

    loop at t_obj_key into w_obj_key.
      wa_folder_id =  w_obj_key(17).
      wa_object_id = w_obj_key+17(18).
      clear wa_sood2.
***      get the file details
      call function 'SO_OBJECT_READ'
        exporting
          folder_id         = wa_folder_id
          object_id         = wa_object_id
        importing
          object_hd_display = wa_sood2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 14:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-attachments-from-t-code-vf03/m-p/7649194#M1572977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T14:53:19Z</dc:date>
    </item>
  </channel>
</rss>

