<?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 small query.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240120#M1012175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of FOR ALL ENTRIES,  we are checking the prerequisite, &lt;/P&gt;&lt;P&gt;whether the table contains data or not, by using &lt;/P&gt;&lt;P&gt;if TABLE IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my doubt is, if we doesn't use the statement IF TABLE IS NOT INITIAL, then what happens.................kindly let me know the ans..&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;rav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2008 12:43:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-04T12:43:54Z</dc:date>
    <item>
      <title>small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240120#M1012175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of FOR ALL ENTRIES,  we are checking the prerequisite, &lt;/P&gt;&lt;P&gt;whether the table contains data or not, by using &lt;/P&gt;&lt;P&gt;if TABLE IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my doubt is, if we doesn't use the statement IF TABLE IS NOT INITIAL, then what happens.................kindly let me know the ans..&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;rav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240120#M1012175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T12:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240121#M1012176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then all the data of second database table (i.e. one in next SELECT statement ) will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt; anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240121#M1012176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240122#M1012177</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; well if table is initial then what it will read so teh SY-SUBRC value will be 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240122#M1012177</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-08-04T12:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240123#M1012178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do NOT check that the table has data, then the next SELECT statement with the FOR ALL ENTRIES, will bring back ALL records for that database table, and this would be wrong, and take a lot of time, potentiallly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240123#M1012178</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-04T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240124#M1012179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RAVKP  ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;                     Even though if u don't use if TABLE IS NOT INITIAL.statement it will work unless the table contains value .&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;Vikram.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240124#M1012179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240125#M1012180</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;1. If we don't check IF ITAB[] is not inital,&lt;/P&gt;&lt;P&gt;   then suppose the itab does not have any records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   So logically, we should not get any matching records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. BUT, it does not happen, and the system fetches&lt;/P&gt;&lt;P&gt;    ALL records.&lt;/P&gt;&lt;P&gt;   It is similar as if we had not written/used for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240125#M1012180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T12:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240126#M1012181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if data is there in first internal table then if you use select with for all entries without using if TABLE IS NOT INITIAL..then it will not effect...but if data is not there then how select query will work as it will have JOIN condition with for all entries like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr                       " Material Number&lt;/P&gt;&lt;P&gt;           werks                       " Plants&lt;/P&gt;&lt;P&gt;           prctr                       " Profit Center&lt;/P&gt;&lt;P&gt;      FROM marc&lt;/P&gt;&lt;P&gt;      INTO TABLE i_marc&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN i_mara&lt;/P&gt;&lt;P&gt;     WHERE matnr = i_mara-matnr&lt;/P&gt;&lt;P&gt;       AND werks IN s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this if i_mara will not have any value then this statement wil not work properly..so it will give you a wrong output or error.&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;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240126#M1012181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: small query....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240127#M1012182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  It will bring all the data records from the corresponding table.&lt;/P&gt;&lt;P&gt; suppose&lt;/P&gt;&lt;P&gt;select carrid&lt;/P&gt;&lt;P&gt;          connid&lt;/P&gt;&lt;P&gt;for all entries t_spfli&lt;/P&gt;&lt;P&gt;from sflight.&lt;/P&gt;&lt;P&gt;where carrid eq t_spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case if t_spfli is empty&lt;/P&gt;&lt;P&gt;then it will bring all records irrespective condition from sflight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 12:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query/m-p/4240127#M1012182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T12:48:50Z</dc:date>
    </item>
  </channel>
</rss>

