<?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: NEED ONE HELP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682128#M620041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use FOR ALL ENTRIES and the table you compare to is empty, then it selects ALL of the entries from the SELECT query. If you selected from MARA, and your itab is empty, it will select the entire MARA table, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you use FOR ALL ENTRIES, you MUST check that it's not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF itab[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM MARA&lt;/P&gt;&lt;P&gt;INTO JTAB&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ITAB&lt;/P&gt;&lt;P&gt;WHERE MATNR = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 08:39:37 GMT</pubDate>
    <dc:creator>GuyF</dc:creator>
    <dc:date>2007-08-14T08:39:37Z</dc:date>
    <item>
      <title>NEED ONE HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682127#M620040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.In flatfile if u find decimals how will u face it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Regarding 'for all entries' keyword: The select stmt which&lt;/P&gt;&lt;P&gt;contains 'for all entries' keyword it compares its internal table&lt;/P&gt;&lt;P&gt;(jtab) with for all entries of internal table(itab) in prior select&lt;/P&gt;&lt;P&gt;stmt . then if suppose itab contains no entries, when we checked with&lt;/P&gt;&lt;P&gt;where condition then what does the for all entries select stmt&lt;/P&gt;&lt;P&gt;compares?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 08:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682127#M620040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: NEED ONE HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682128#M620041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use FOR ALL ENTRIES and the table you compare to is empty, then it selects ALL of the entries from the SELECT query. If you selected from MARA, and your itab is empty, it will select the entire MARA table, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you use FOR ALL ENTRIES, you MUST check that it's not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF itab[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM MARA&lt;/P&gt;&lt;P&gt;INTO JTAB&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ITAB&lt;/P&gt;&lt;P&gt;WHERE MATNR = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 08:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682128#M620041</guid>
      <dc:creator>GuyF</dc:creator>
      <dc:date>2007-08-14T08:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: NEED ONE HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682129#M620042</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;These are the solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.In flatfile if u find decimals how will u face it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Declare the internal table fields as Character fields while uploading data from Flatfile. Even if there is a Decimal field , Read it into Character field.&lt;/P&gt;&lt;P&gt;After that you can convert into Decimal again.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Regarding 'for all entries' keyword: The select stmt which&lt;/P&gt;&lt;P&gt;contains 'for all entries' keyword it compares its internal table&lt;/P&gt;&lt;P&gt;(jtab) with for all entries of internal table(itab) in prior select&lt;/P&gt;&lt;P&gt;stmt . then if suppose itab contains no entries, when we checked with&lt;/P&gt;&lt;P&gt;where condition then what does the for all entries select stmt&lt;/P&gt;&lt;P&gt;compares? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;When the Driver table itab contains no Records it will intrepret like All records .&lt;/P&gt;&lt;P&gt;So it will fetch all records from the Table.&lt;/P&gt;&lt;P&gt;That's why we must check whether the driver table is empty before using FOR ALL ENTRIES.&amp;lt;/b&amp;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;&amp;lt;b&amp;gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 08:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682129#M620042</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-14T08:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: NEED ONE HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682130#M620043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont check if itab is initial or nor .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then there is no use in where condition it will select all rows from dbtable&lt;/P&gt;&lt;P&gt;please check with one example if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 08:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-one-help/m-p/2682130#M620043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T08:42:10Z</dc:date>
    </item>
  </channel>
</rss>

