<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023185#M714771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This is lalitha&lt;/P&gt;&lt;P&gt;in the select statement the syntax &lt;/P&gt;&lt;P&gt;(if it_vbak[] is not initial.&lt;/P&gt;&lt;P&gt;select * from vbap into table it_vbap &lt;/P&gt;&lt;P&gt;for all entries in it_vbak where kunnr = it_vbak-kunnr .)&lt;/P&gt;&lt;P&gt;I want to know the meaning of initial ie what values of vbak is it selecting &amp;amp; for all entries in it_vbak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 01:10:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T01:10:14Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023185#M714771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This is lalitha&lt;/P&gt;&lt;P&gt;in the select statement the syntax &lt;/P&gt;&lt;P&gt;(if it_vbak[] is not initial.&lt;/P&gt;&lt;P&gt;select * from vbap into table it_vbap &lt;/P&gt;&lt;P&gt;for all entries in it_vbak where kunnr = it_vbak-kunnr .)&lt;/P&gt;&lt;P&gt;I want to know the meaning of initial ie what values of vbak is it selecting &amp;amp; for all entries in it_vbak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 01:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023185#M714771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T01:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023186#M714772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(a) "if not it_vbak[] is initial." means that the logic will only be executed if the internal table it_vbak has contents i.e. at least one row.&lt;/P&gt;&lt;P&gt;(b) The "for all entries in" will generate a select statement along the lines of "where kunnr = X or kunnr = Y or kunnr = Z" where X,Y, and Z are taken from the rows in it_vbak.&lt;/P&gt;&lt;P&gt;(c) the reason for (a) is that if you specifiy an empty table in (b), you will end up selecting &lt;STRONG&gt;all&lt;/STRONG&gt; the data from vbap - i.e. a "for all entries in" with an empty internal table specified will return everything, not nothing.  As the online help says "Duplicate lines are automatically removed from the resulting set. If the internal table itab is empty, the whole WHERE statement is ignored and all lines in the database are put in the resulting set."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 01:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023186#M714772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T01:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023187#M714773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lalitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_vbak[] is not initial.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;- If there are values in the table it_vbak then only you will call the below select statement. The reason being if there are no values in internal table and you use thte same in FOR ALL ENTRIES then all the records will be selected from VBAP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select * from vbap into table it_vbap &lt;/P&gt;&lt;P&gt;for all entries in it_vbak where kunnr = it_vbak-kunnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 01:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3023187#M714773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T01:51:41Z</dc:date>
    </item>
  </channel>
</rss>

