<?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: Delay within internal loops - nested loops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382494#M186537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay &amp;amp; anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented the solutins whatever u have given.i have cross verified with my colleagues also.but this situation behaves very strange.i ll post my code .just go through that code and let me know where ia have to fine tune&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2006 06:14:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-29T06:14:03Z</dc:date>
    <item>
      <title>Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382489#M186532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have generated report using nested loops.if i give some 200 hits ,it generates the report within 90 seconds.but if the hit limit increases above 500,the loop becomes infinite.i have checked the datas as well as select Queries,everything is fine.why it happens.please help me if u know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 05:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382489#M186532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T05:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382490#M186533</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; 1). Try to avoide nested loops.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt; 2). Try using READ WITH BINARY SEARCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 3). Use a SORTED TABLE the access is fast&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Post urt code to let u know where u can fine tune the program.&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 06:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382490#M186533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T06:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382491#M186534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be no reason why the program goes into an infinite loop pass with a larger number of records, unless there is some problem with one of the records it is trying to access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that one of the records in the 500 has some problem, and that is why the system behaves strangely in that case. You can do some trouble shooting, for eg, have the system download a file with the loop pass number, so that you know at which loop pass it went into an infinite loop, and analyze the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 06:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382491#M186534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T06:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382492#M186535</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;There are couple of solutions to this&lt;/P&gt;&lt;P&gt;a) try defining a sarted internal table for the inside table with the keys that you define in the where clause of your inside loop.&lt;/P&gt;&lt;P&gt;b) You can try the below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1.
read table itab2 with key .......
l_tabix = sy-tabix.
loop at itab2 from l_tabix.
&amp;lt;check the validity condition&amp;gt;
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this could kill about 3/4 of the time before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 06:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382492#M186535</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2006-06-29T06:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382493#M186536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudha,&lt;/P&gt;&lt;P&gt;I tried first 200 records,then 200 records like this i have checked upto 1000 records.the system produes the  results within short time.but when i have checked above 500 ,it creates infinite loop.but sometimes the report comes after an 1 hour for 500 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 06:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382493#M186536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T06:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382494#M186537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay &amp;amp; anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented the solutins whatever u have given.i have cross verified with my colleagues also.but this situation behaves very strange.i ll post my code .just go through that code and let me know where ia have to fine tune&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 06:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382494#M186537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T06:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382495#M186538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wheres ur code?&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 07:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382495#M186538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T07:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delay within internal loops - nested loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382496#M186539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this &amp;lt;a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops"&amp;gt;blog.&amp;lt;/a&amp;gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 13:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-within-internal-loops-nested-loops/m-p/1382496#M186539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T13:41:49Z</dc:date>
    </item>
  </channel>
</rss>

