<?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: Loop problem urgent (rewards....) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537179#M575999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemant,&lt;/P&gt;&lt;P&gt;1. Sort the tables using KUNNR.&lt;/P&gt;&lt;P&gt;2. Copy IBSID2 to another itab and modify that itab.&lt;/P&gt;&lt;P&gt;loop at ibsid2.&lt;/P&gt;&lt;P&gt;  LOOP AT IBSID1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;modify itab....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Delete kunnr entry from IBSID2 after each loop end of IBSID1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 06:51:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-10T06:51:56Z</dc:date>
    <item>
      <title>Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537178#M575998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii my program is giving a timt out error in the above loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IBSID2.(consist of 85000 records)&lt;/P&gt;&lt;P&gt;    LOOP AT IBSID1(consist of 85000 records) WHERE KUNNR EQ IBSID2-KUNNR.&lt;/P&gt;&lt;P&gt;      V_TABIX2 = SY-TABIX.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;        IBSID2-TOT_30 =  IBSID1-AGE30 + IBSID1-AGE30C .&lt;/P&gt;&lt;P&gt;        IBSID2-TOT_60 =  IBSID1-AGE60 + IBSID1-AGE60C .&lt;/P&gt;&lt;P&gt;        IBSID2-TOT_180 =  IBSID1-AGE180 + IBSID1-AGE180C .&lt;/P&gt;&lt;P&gt;        IBSID2-TOT_360 =  IBSID1-AGE360 + IBSID1-AGE360C .&lt;/P&gt;&lt;P&gt;        IBSID2-TOT_360M =  IBSID1-AGE360M + IBSID1-AGE360MC .&lt;/P&gt;&lt;P&gt;        IBSID2-TOT_OUT_INCL = IBSID1-R_DMBTR  + IBSID1-SPGLAMT +&lt;/P&gt;&lt;P&gt;                               IBSID1-SPGLAMTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY IBSID2 INDEX V_TABIX2 TRANSPORTING TOT_30 TOT_60&lt;/P&gt;&lt;P&gt;      TOT_180 TOT_360 TOT_360M TOT_OUT_INCL.&lt;/P&gt;&lt;P&gt;      CLEAR IBSID2.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what is alternate to this problem i tried instead of loop at ibsid1 i tried&lt;/P&gt;&lt;P&gt;read table ibsid1 with key kunnr = ibsid2-kunnr. but some values r not coming properly..&lt;/P&gt;&lt;P&gt;thanking you..&lt;/P&gt;&lt;P&gt;Rewards point for correct ans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537178#M575998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537179#M575999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemant,&lt;/P&gt;&lt;P&gt;1. Sort the tables using KUNNR.&lt;/P&gt;&lt;P&gt;2. Copy IBSID2 to another itab and modify that itab.&lt;/P&gt;&lt;P&gt;loop at ibsid2.&lt;/P&gt;&lt;P&gt;  LOOP AT IBSID1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;modify itab....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Delete kunnr entry from IBSID2 after each loop end of IBSID1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537179#M575999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537180#M576000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Suggest you Do not process large amount of data with Internal table , where you can get timed out like this , Just try to validate the data with where condition , Still you do not want to have any creteria then just run this report on backround mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any other key fields on your internal table add those fields additionaly in to your where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more suggestion : Under At new Kunnr , you can loop the second internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537180#M576000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537181#M576001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;declare internal tables....&lt;/P&gt;&lt;P&gt;write select statements using FOR ALL ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that loop at first internal table.&lt;/P&gt;&lt;P&gt;use read statements...&lt;/P&gt;&lt;P&gt;append data to final internal table.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537181#M576001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537182#M576002</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IBSID2 BY kunnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT IBSID2. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ TABLE IBSID1WITH KEY kunnr = IBSID2-kunnr &lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;V_TABIX2 = SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;IBSID2-TOT_30 = IBSID1-AGE30 + IBSID1-AGE30C .&lt;/P&gt;&lt;P&gt;IBSID2-TOT_60 = IBSID1-AGE60 + IBSID1-AGE60C .&lt;/P&gt;&lt;P&gt;IBSID2-TOT_180 = IBSID1-AGE180 + IBSID1-AGE180C .&lt;/P&gt;&lt;P&gt;IBSID2-TOT_360 = IBSID1-AGE360 + IBSID1-AGE360C .&lt;/P&gt;&lt;P&gt;IBSID2-TOT_360M = IBSID1-AGE360M + IBSID1-AGE360MC .&lt;/P&gt;&lt;P&gt;IBSID2-TOT_OUT_INCL = IBSID1-R_DMBTR + IBSID1-SPGLAMT +&lt;/P&gt;&lt;P&gt;IBSID1-SPGLAMTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY IBSID2 INDEX V_TABIX2 TRANSPORTING TOT_30 TOT_60&lt;/P&gt;&lt;P&gt;TOT_180 TOT_360 TOT_360M TOT_OUT_INCL.&lt;/P&gt;&lt;P&gt;CLEAR IBSID2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to read the internal tables. check the commality in different loops and try to merge the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls go through the below links:&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;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/improving" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/improving&lt;/A&gt;&lt;EM&gt;Performance&lt;/EM&gt;in&lt;EM&gt;Nested&lt;/EM&gt;Loops&lt;EM&gt;for&lt;/EM&gt;Internal+Tables&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537182#M576002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537183#M576003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call function GUI_PROGRESS_INDICATOR inside your loops to avoid time out error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537183#M576003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537184#M576004</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;Instead of this loop statement: &lt;/P&gt;&lt;P&gt;LOOP AT IBSID1(consist of 85000 records) WHERE KUNNR EQ IBSID2-KUNNR.&lt;/P&gt;&lt;P&gt;V_TABIX2 = SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using &lt;/P&gt;&lt;P&gt;SORT IBSID1 BY KUNNR.&lt;/P&gt;&lt;P&gt;READ TABLE IBSID1 WITH KEY KUNNR = IBSID2-KUNNR&lt;/P&gt;&lt;P&gt;                                                 V_TABIX2 = SY-TABIX BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537184#M576004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T06:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537185#M576005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create field symbol &amp;lt;ibsid2&amp;gt; like line of IBSID2, &amp;lt;ibsid1&amp;gt; like line of IBSID1.&lt;/P&gt;&lt;P&gt;loop at the internal tables assigning to these field symbols...&lt;/P&gt;&lt;P&gt;do your calculations like&lt;/P&gt;&lt;P&gt;&amp;lt;ibsid2&amp;gt;-TOT_30 = &amp;lt;ibsid1&amp;gt;-AGE30 + &amp;lt;ibsid1&amp;gt;-AGE30C .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using field symbols should improve performance and avoid timeout...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/mark.finnern/blog/2004/08/10/spread-the-love&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 07:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537185#M576005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537186#M576006</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;Try to use another table just same as that of ur internal table and copy all contents in that table and then modify the contents of that new table and the main cause of ur error is mainly bcoz every time is calling loops simultaneously ucan avoid this by using sort functions during select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls try this and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 07:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537186#M576006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loop problem urgent (rewards....)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537187#M576007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you can use like following:&lt;/P&gt;&lt;P&gt;data: z_index type i value  1.&lt;/P&gt;&lt;P&gt;sort itab1 by kunnr.&lt;/P&gt;&lt;P&gt;sort itab2 by kunnr.&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  loop at itab2 from z_index.&lt;/P&gt;&lt;P&gt;    if itab1-kunnr &amp;lt;&amp;gt; itab2-kunnr.&lt;/P&gt;&lt;P&gt;       z_index = sy-tabix.&lt;/P&gt;&lt;P&gt;       exit.&lt;/P&gt;&lt;P&gt;    else.&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;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 07:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-problem-urgent-rewards/m-p/2537187#M576007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:02:25Z</dc:date>
    </item>
  </channel>
</rss>

