<?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 Retrieve filename of attachment for inspection lot in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439303#M1740101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the attachment list for a particular inspection lot number(those attachment that appeared in QA03)?&lt;/P&gt;&lt;P&gt;I have google around it seems like function module GOS_ATTACHMENT_LIST_POPUP might do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to get the filename of the attachment.Can anyone spread some idea on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marlson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 08:16:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-27T08:16:46Z</dc:date>
    <item>
      <title>Retrieve filename of attachment for inspection lot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439303#M1740101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the attachment list for a particular inspection lot number(those attachment that appeared in QA03)?&lt;/P&gt;&lt;P&gt;I have google around it seems like function module GOS_ATTACHMENT_LIST_POPUP might do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to get the filename of the attachment.Can anyone spread some idea on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marlson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 08:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439303#M1740101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-27T08:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve filename of attachment for inspection lot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439304#M1740102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marlson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to find the object corresponding to the Inspection lot&lt;/P&gt;&lt;P&gt;(have a look to the trans. OAM1, .. customizing .. ling .. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after write a code like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14px; text-align: -webkit-auto; background-color: #f2f4f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOVE : it_qcpr-certno TO is_object-instid ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14px; text-align: -webkit-auto; background-color: #f2f4f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'BUS2117'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_object-typeid ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14px; text-align: -webkit-auto; background-color: #f2f4f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'BO'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_object-catid .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14px; text-align: -webkit-auto; background-color: #f2f4f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND is_object TO it_objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="codeComment" style="font-family: 'Courier New', Courier, monospace; color: #0000f0; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;* Création de la clef.&lt;/P&gt;&lt;P class="code" style="font-family: 'Courier New', Courier, monospace; color: #000000; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;&amp;nbsp; MOVE : 'I'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_role-sign ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'EQ'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_role-option ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GOSAPPLOBJ' TO is_role-low.&lt;BR /&gt;&amp;nbsp; APPEND is_role TO it_roles.&lt;BR /&gt;&amp;nbsp; MOVE : 'I'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_relation-sign ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'EQ'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_relation-option ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ATTA'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO is_relation-low .&lt;BR /&gt;&amp;nbsp; APPEND is_relation TO it_relations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MOVE : 'BIN' TO w_file_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="codeComment" style="font-family: 'Courier New', Courier, monospace; color: #0000f0; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;* Extraction des liens.&lt;/P&gt;&lt;P class="code" style="font-family: 'Courier New', Courier, monospace; color: #000000; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;&amp;nbsp; TRY.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD cl_binary_relation=&amp;gt;read_links_of_objects&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_objects&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = it_objects&lt;/P&gt;&lt;P class="codeComment" style="font-family: 'Courier New', Courier, monospace; color: #0000f0; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; ip_logsys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/P&gt;&lt;P class="code" style="font-family: 'Courier New', Courier, monospace; color: #000000; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_role_options&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = it_roles&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_relation_options = it_relations&lt;/P&gt;&lt;P class="codeComment" style="font-family: 'Courier New', Courier, monospace; color: #0000f0; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; ip_no_buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = SPACE&lt;/P&gt;&lt;P class="code" style="font-family: 'Courier New', Courier, monospace; color: #000000; font-size: 14px; background-color: #f2f4f7; text-align: -webkit-auto;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_links_a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = it_link_a.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH cx_obl_model_error .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH cx_obl_parameter_error .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH cx_obl_internal_error .&lt;BR /&gt;&amp;nbsp; ENDTRY.&lt;/P&gt;&lt;P class="code"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 08:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439304#M1740102</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-05-27T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve filename of attachment for inspection lot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439305#M1740103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Girod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Anyway I just want to get the title of the attachment.&lt;/P&gt;&lt;P&gt;What should I put for this field &lt;STRONG&gt;is_object-instid&lt;/STRONG&gt;? Should I just put the inspection lot number(PRUEFLOS) for this field? I'm not quite understanding on how to get the object corresponding to the inspection lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marlson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 02:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439305#M1740103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-28T02:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve filename of attachment for inspection lot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439306#M1740104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go through note 927407 - Determining the content of GOS and SAPoffice documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically:&lt;/P&gt;&lt;P&gt;1. Determine the BOR object in question as Frédéric already pointed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use method CL_BINARY_RELATION=&amp;gt;READ_LINKS_OF_BINRELS to read the links. You are specially interested probably in those of type ATTA. In older SAP versions you call SREL_GET_NEXT_RELATIONS function module instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call function SO_DOCUMENT_READ_API1. In parameter DOCUMENT_DATA you'll find the file name. You also get the file contents with this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same doubt today, so I'm positive it works &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 04:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439306#M1740104</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2013-05-28T04:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve filename of attachment for inspection lot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439307#M1740105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the precise explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have search through the object list in SWO1 and discover that &lt;STRONG&gt;BUS2045 &lt;/STRONG&gt;is the SAP standard object for inspection lot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lwa_object-instid = iv_prueflos. "Inspection lot number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lwa_object-typeid = &lt;SPAN class="L0S33"&gt;'BUS2045'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lwa_object-catid = &lt;SPAN class="L0S33"&gt;'BO'&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 07:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-filename-of-attachment-for-inspection-lot/m-p/9439307#M1740105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-28T07:13:26Z</dc:date>
    </item>
  </channel>
</rss>

