<?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: performance in Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554226#M251190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you need more than 1 entry to read you have to loop.&lt;/P&gt;&lt;P&gt;if you know how much you have to read you can leave the loop using "exit".&lt;/P&gt;&lt;P&gt;but in the case you are sure you need to get only 1 entry or the first one (after sort) use "read table itab with key field1 = value1 field2 = value2..."&lt;/P&gt;&lt;P&gt;i hope it answer your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2006 13:00:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-11T13:00:03Z</dc:date>
    <item>
      <title>performance in Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554225#M251189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking  for help regarding performance of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Program I am using one internal table with Where condition ,because of the given where condition The process is very slow  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"loop at itab where*****"&lt;/P&gt;&lt;P&gt;is there any other solution to improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Can I use hash table or sorted internal table, if so specify me how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 12:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554225#M251189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T12:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: performance in Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554226#M251190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you need more than 1 entry to read you have to loop.&lt;/P&gt;&lt;P&gt;if you know how much you have to read you can leave the loop using "exit".&lt;/P&gt;&lt;P&gt;but in the case you are sure you need to get only 1 entry or the first one (after sort) use "read table itab with key field1 = value1 field2 = value2..."&lt;/P&gt;&lt;P&gt;i hope it answer your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 13:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554226#M251190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: performance in Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554227#M251191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the Rob Burbank blog from early February (7th? 2006).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted table, read first record with key, loop from TABIX until key changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 13:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554227#M251191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T13:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: performance in Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554228#M251192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sai,&lt;/P&gt;&lt;P&gt; Try Including all the key fields in the where condition and  make sure that you declare your internal table fields in the order as they are in the data base table  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 13:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554228#M251192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T13:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: performance in Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554229#M251193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     use below logic to improve performance of loop &lt;/P&gt;&lt;P&gt;     use read table with binary search addition./ &lt;/P&gt;&lt;P&gt;     sort itab1 by matnr.&lt;/P&gt;&lt;P&gt;     loop at itab.&lt;/P&gt;&lt;P&gt;      read table itab1 with key matnr = itab-matnr&lt;/P&gt;&lt;P&gt;                             binary search.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;       data lv_index type sy-tabix.&lt;/P&gt;&lt;P&gt;       clear lv_index.&lt;/P&gt;&lt;P&gt;       lv_index = sy-tabix.&lt;/P&gt;&lt;P&gt;        loop at itab1 from lv_index.&lt;/P&gt;&lt;P&gt;         if itab-matnr &amp;lt;&amp;gt; itab1-matnr.&lt;/P&gt;&lt;P&gt;           clear itab.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;         endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;      endif.  &lt;/P&gt;&lt;P&gt;     endloop. &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;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 13:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554229#M251193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T13:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: performance in Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554230#M251194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And here's the URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 14:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-in-internal-table/m-p/1554230#M251194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T14:25:04Z</dc:date>
    </item>
  </channel>
</rss>

