<?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 record missed in a SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696976#M1577570</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 run a SQL like :&lt;/P&gt;&lt;P&gt;    SELECT UC_POD_EXT&lt;/P&gt;&lt;P&gt;           UC_DATEFRO&lt;/P&gt;&lt;P&gt;           UC_DATETO&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_MR&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_BILL&lt;/P&gt;&lt;P&gt;           /BIC/ZBI_MRCON&lt;/P&gt;&lt;P&gt;      FROM /BIC/AZFC_D9900 INTO TABLE LT_BILL&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/P&gt;&lt;P&gt;     WHERE UC_POD_EXT = SOURCE_PACKAGE-UC_POD_EXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOURCE_PACKAGE only has 1 record, and this reocrd's UC_POD_EXT is 10032789420750421. and it return 31 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I test another SQL like&lt;/P&gt;&lt;P&gt;    SELECT UC_POD_EXT&lt;/P&gt;&lt;P&gt;           UC_DATEFRO&lt;/P&gt;&lt;P&gt;           UC_DATETO&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_MR&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_BILL&lt;/P&gt;&lt;P&gt;           /BIC/ZBI_MRCON&lt;/P&gt;&lt;P&gt;      FROM /BIC/AZFC_D9900 INTO&lt;/P&gt;&lt;P&gt;      corresponding fields of TABLE LT_BILL&lt;/P&gt;&lt;P&gt;     WHERE UC_POD_EXT = '10032789420750421'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it return 34 reocrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so some records missed in the first SQL, i don't know why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Feb 2011 00:02:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-18T00:02:14Z</dc:date>
    <item>
      <title>record missed in a SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696976#M1577570</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 run a SQL like :&lt;/P&gt;&lt;P&gt;    SELECT UC_POD_EXT&lt;/P&gt;&lt;P&gt;           UC_DATEFRO&lt;/P&gt;&lt;P&gt;           UC_DATETO&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_MR&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_BILL&lt;/P&gt;&lt;P&gt;           /BIC/ZBI_MRCON&lt;/P&gt;&lt;P&gt;      FROM /BIC/AZFC_D9900 INTO TABLE LT_BILL&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/P&gt;&lt;P&gt;     WHERE UC_POD_EXT = SOURCE_PACKAGE-UC_POD_EXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOURCE_PACKAGE only has 1 record, and this reocrd's UC_POD_EXT is 10032789420750421. and it return 31 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I test another SQL like&lt;/P&gt;&lt;P&gt;    SELECT UC_POD_EXT&lt;/P&gt;&lt;P&gt;           UC_DATEFRO&lt;/P&gt;&lt;P&gt;           UC_DATETO&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_MR&lt;/P&gt;&lt;P&gt;           /BIC/ZKWH_BILL&lt;/P&gt;&lt;P&gt;           /BIC/ZBI_MRCON&lt;/P&gt;&lt;P&gt;      FROM /BIC/AZFC_D9900 INTO&lt;/P&gt;&lt;P&gt;      corresponding fields of TABLE LT_BILL&lt;/P&gt;&lt;P&gt;     WHERE UC_POD_EXT = '10032789420750421'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it return 34 reocrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so some records missed in the first SQL, i don't know why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 00:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696976#M1577570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T00:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: record missed in a SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696977#M1577571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i BELIEVe this is BECAUSE 'FOR ALL ENTRIES' ONLY EVER RETURNS ONE row per output key. i.e no duplicates will appear in the output table. So I think you will find that some of the 34 returned by the secoond sql will have duplicate key entries&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 00:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696977#M1577571</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-18T00:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: record missed in a SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696978#M1577572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the prompt reply.&lt;/P&gt;&lt;P&gt;but my source package only has 1 record, so "for all entry" will return this record, that's exactly the same as the second SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 01:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696978#M1577572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T01:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: record missed in a SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696979#M1577573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please retrive all the key fields of table /BIC/AZFC_D9900, as this is because of FOR ALL ENTRIES CLAUSE (as mentioned by Neil), which will delete duplicate records from the fields you are selecting.  Since now you'll retrieve all the key fields of the table /BIC/AZFC_D9900, you are assured of getting unique records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 04:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-missed-in-a-sql/m-p/7696979#M1577573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T04:36:41Z</dc:date>
    </item>
  </channel>
</rss>

