<?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: select less data using FOR ALL ENTRIES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290498#M1389793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOR ALL ENTRIES eliminates duplicates from the selection set. Just make sure you are selecting all the key fields and you should be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 19:47:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-09T19:47:50Z</dc:date>
    <item>
      <title>select less data using FOR ALL ENTRIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290497#M1389792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have met an odd problem during my coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select machtype ra rmodel from zgreit
      into table lt_zgreit
      where ra = '866B0020999'
        and receipt_stat = 'R'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could select 8 data from table zgreit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not gt_zgrrnnh[] is initial.
* get machine receiving for selected RNN
    select machtype ra rmodel from zgreit
      into table lt_zgreit
      for all entries in gt_zgrrnnh
      where ra = gt_zgrrnnh-rnn
        and receipt_stat = 'R'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just selected 5 data from table zgreit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in these codes, both field RA and field RNN are typed c length 11. and '866B0020999' is one of the data of gt_zgrrnnh-rnn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any reason that made the mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sincerely,&lt;/P&gt;&lt;P&gt;Julie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 19:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290497#M1389792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: select less data using FOR ALL ENTRIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290498#M1389793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOR ALL ENTRIES eliminates duplicates from the selection set. Just make sure you are selecting all the key fields and you should be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 19:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290498#M1389793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T19:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: select less data using FOR ALL ENTRIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290499#M1389794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FOR ALL ENTRIES&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; deletes the duplicate entries from the itab. That's why only 5 entries are selected. Check in your 1st select query, some of the entries must have been duplicate. Make sure you are using all the Key fields while fetching from your Ztable.&lt;/P&gt;&lt;P&gt;For your reference, Search by &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FOR ALL ENTRIES&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and there you'll find lots of BLOGS on the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 08:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-less-data-using-for-all-entries/m-p/6290499#M1389794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T08:22:12Z</dc:date>
    </item>
  </channel>
</rss>

