<?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 performance tuning in loop at itab statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831448#M1471606</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;I have one internal table lets ITAB1[] ,&lt;/P&gt;&lt;P&gt; Its having 15,0000 Records.&lt;/P&gt;&lt;P&gt;now I want to search only 5 records from ITAB1[] compairing ITAB2[] , ITAB2 having  15,0000 records.&lt;/P&gt;&lt;P&gt;what is best method to search this records in minimum time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop it ITAB1.&lt;/P&gt;&lt;P&gt;Read table ITAB2 with = ... binary search.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prblem is that , above statemnt will take 15,0000 intration at each statment while reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Mar 2010 04:40:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-29T04:40:47Z</dc:date>
    <item>
      <title>performance tuning in loop at itab statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831448#M1471606</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;I have one internal table lets ITAB1[] ,&lt;/P&gt;&lt;P&gt; Its having 15,0000 Records.&lt;/P&gt;&lt;P&gt;now I want to search only 5 records from ITAB1[] compairing ITAB2[] , ITAB2 having  15,0000 records.&lt;/P&gt;&lt;P&gt;what is best method to search this records in minimum time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop it ITAB1.&lt;/P&gt;&lt;P&gt;Read table ITAB2 with = ... binary search.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prblem is that , above statemnt will take 15,0000 intration at each statment while reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 04:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831448#M1471606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T04:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning in loop at itab statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831449#M1471607</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;{SORT THE TABLE WITH PROPER CONDITON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB2INTO IS_ITAB2.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB1 INTO IS_ITAB1 WITH KEY ..........&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  W_TABIX = SY-TABIX.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_ITAB1 INTO IS_ITAB1 FROM W_TABIX.&lt;/P&gt;&lt;P&gt;  IF ( PLEASE CHECK THE CONDITON MENTIONED FOR THE BINARY SEARCH HERE )&lt;/P&gt;&lt;P&gt;  ELSE.&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;&lt;/P&gt;&lt;P&gt;Please try this this parallel curosor method.. Performance is good..&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;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 04:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831449#M1471607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T04:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning in loop at itab statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831450#M1471608</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;Could you please elaborate further how are you trying to compare the records between the two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 04:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831450#M1471608</guid>
      <dc:creator>jayesh_gupta</dc:creator>
      <dc:date>2010-03-29T04:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning in loop at itab statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831451#M1471609</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;PRE&gt;&lt;CODE&gt;loop it ITAB1.
Read table ITAB2 with = ... binary search.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think whatever code you are using now is appropriate only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you want to read record from ITAB1 based on data in ITAB2, you will have to loop at ITAB2 and then do binary search on ITAB1. Just make sure that your table ITAB1 is sorted correctly as per the binary search criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 05:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831451#M1471609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T05:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning in loop at itab statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831452#M1471610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;now I want to search only 5 records from ITAB1&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on what conditions you have short listed the 5 records of ITAB1 ? Are the fields involved defined (or can be defined) as key fields of the internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 05:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-in-loop-at-itab-statements/m-p/6831452#M1471610</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-29T05:30:28Z</dc:date>
    </item>
  </channel>
</rss>

