<?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: statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226720#M138092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALL ENTRIES ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to fire a SELECT for each row of a internal table, then instead of calling the SELECT inside the loop of the internal table, you use the ALL ENTRIES so that the SELECT fires for each row. Pre-requisite is that internal table should have data, other wise it will fetch all the data and might cause performance issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BINARY SEARCH ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to improve the performance of a READ statement on a internal table. You will have to declare the table as a SORTED table and then use the BINARY SEARCH option on the SORTED field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2006 17:07:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-21T17:07:35Z</dc:date>
    <item>
      <title>statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226718#M138090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how does  for all entries and binary search operation works . what r there prerequistes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 17:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226718#M138090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226719#M138091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOR ALL ENTRIES:&lt;/P&gt;&lt;P&gt;1.You must ensure that the itab is not empty, otherwise your SELECT will be a  complete scna of the db table&lt;/P&gt;&lt;P&gt;2. If you expect duplicate entires to be selected from the db table, you must select all the key fields in your SELECT statement.&lt;/P&gt;&lt;P&gt;BBINARY SEARCH:&lt;/P&gt;&lt;P&gt;The itab must be sorted by the key fields you READ the table with. ie&lt;/P&gt;&lt;P&gt;SORT ITAB BY FIELD3.&lt;/P&gt;&lt;P&gt;read table itab with key field3 = 'XXXX'&lt;/P&gt;&lt;P&gt;                     binary search.&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;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 17:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226719#M138091</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-04-21T17:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226720#M138092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALL ENTRIES ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to fire a SELECT for each row of a internal table, then instead of calling the SELECT inside the loop of the internal table, you use the ALL ENTRIES so that the SELECT fires for each row. Pre-requisite is that internal table should have data, other wise it will fetch all the data and might cause performance issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BINARY SEARCH ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to improve the performance of a READ statement on a internal table. You will have to declare the table as a SORTED table and then use the BINARY SEARCH option on the SORTED field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 17:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statements/m-p/1226720#M138092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T17:07:35Z</dc:date>
    </item>
  </channel>
</rss>

