<?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 Checking for Attachments with GOS? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-attachments-with-gos/m-p/4551697#M1074749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have sucessfully used GOS to create my own object type, and have used the functionality to add attachments.  Is there anyway of checking to see if a particular object has any attachments (i.e. - returning a flag that tells you if the object has documents attached or not?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 17:03:20 GMT</pubDate>
    <dc:creator>former_member393151</dc:creator>
    <dc:date>2008-09-25T17:03:20Z</dc:date>
    <item>
      <title>Checking for Attachments with GOS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-attachments-with-gos/m-p/4551697#M1074749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have sucessfully used GOS to create my own object type, and have used the functionality to add attachments.  Is there anyway of checking to see if a particular object has any attachments (i.e. - returning a flag that tells you if the object has documents attached or not?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 17:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-attachments-with-gos/m-p/4551697#M1074749</guid>
      <dc:creator>former_member393151</dc:creator>
      <dc:date>2008-09-25T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Attachments with GOS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-attachments-with-gos/m-p/4551698#M1074750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Check for relation ship table SRGBTBREL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. pl. check the following code for counting number of attachment in a object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 i_object1-typeid = 'YBUS2012'.
  i_object1-catid  = 'BO'.
  i_object1-instid = i_ybus2012-docno.
  call method cl_gos_attachment_query=&amp;gt;count_for_object
    exporting
     is_object = i_object1
     ip_arl    = space
    receiving
     rt_stat   = i_stat1.
  read table i_stat1 into wa_stat1 index 1.
  if sy-subrc eq c_0.
     move wa_stat1-counter to v_attno1.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here v_attno1 contains the no of attachment found in the object id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 17:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-attachments-with-gos/m-p/4551698#M1074750</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-09-25T17:17:34Z</dc:date>
    </item>
  </channel>
</rss>

