<?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: Looping Problem-Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289367#M786986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Keshu,&lt;/P&gt;&lt;P&gt;How can i do this.yes you are correct.&lt;/P&gt;&lt;P&gt;Can uou tell me some alternative way out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2008 06:30:01 GMT</pubDate>
    <dc:creator>rahul2000</dc:creator>
    <dc:date>2008-01-07T06:30:01Z</dc:date>
    <item>
      <title>Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289358#M786977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am unable to get the index read correctly for my IT_DISPLAY table.There are 2 values in plaf table and multible in display table.&lt;/P&gt;&lt;P&gt;how to get the correct index value for my display table?since currently it is on plaf table.due to this index problem,my values get moved incoreectly&lt;/P&gt;&lt;P&gt;code is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_AFPO BY PLNUM.&lt;/P&gt;&lt;P&gt;SORT IT_PLAF BY PLNUM.&lt;/P&gt;&lt;P&gt;LOOP AT IT_AFPO INTO WA_AFPO.&lt;/P&gt;&lt;P&gt; LOOP AT IT_PLAF INTO WA_PLAF.&lt;/P&gt;&lt;P&gt;  W_INDEX = SY-TABIX.&lt;/P&gt;&lt;P&gt; IF WA_PLAF-PLNUM = WA_AFPO-PLNUM.&lt;/P&gt;&lt;P&gt;   MOVE:WA_PLAF-GSMNG TO WA_DISPLAY-GAMNG.&lt;/P&gt;&lt;P&gt;   MODIFY IT_DISPLAY INDEX W_INDEX FROM WA_DISPLAY TRANSPORTING GAMNG.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR:WA_PLAF,WA_DISPLAY.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt; CLEAR:WA_AFPO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289358#M786977</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-01-07T06:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289359#M786978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rahul try like this.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_AFPO BY PLNUM.&lt;/P&gt;&lt;P&gt;SORT IT_PLAF BY PLNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_AFPO INTO WA_AFPO.&lt;/P&gt;&lt;P&gt;read table IT_PLAF INTO WA_PLAF with key PLNUM = WA_AFPO-PLNUM binary search. &lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;W_INDEX = SY-TABIX.&lt;/P&gt;&lt;P&gt;MOVE:WA_PLAF-GSMNG TO WA_DISPLAY-GAMNG.&lt;/P&gt;&lt;P&gt;MODIFY IT_DISPLAY INDEX W_INDEX FROM WA_DISPLAY TRANSPORTING GAMNG.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR:WA_PLAF,WA_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR:WA_AFPO.&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;if you have to do a loop in a loop &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_AFPO BY PLNUM.&lt;/P&gt;&lt;P&gt;SORT IT_PLAF BY PLNUM.&lt;/P&gt;&lt;P&gt;LOOP AT IT_AFPO INTO WA_AFPO.&lt;/P&gt;&lt;P&gt;LOOP AT IT_PLAF INTO WA_PLAF where PLNUM = WA_AFPO-PLNUM .&lt;/P&gt;&lt;P&gt;W_INDEX = SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE:WA_PLAF-GSMNG TO WA_DISPLAY-GAMNG.&lt;/P&gt;&lt;P&gt;MODIFY IT_DISPLAY INDEX W_INDEX FROM WA_DISPLAY TRANSPORTING GAMNG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR:WA_PLAF,WA_DISPLAY.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR:WA_AFPO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289359#M786978</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-07T06:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289360#M786979</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;when ur reading the second internal table read this based on a where condition and that should link both ur tables first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumanjeet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289360#M786979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T06:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289361#M786980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better take a variable and keep Incrementing in the inner loop and clear it in the outer loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Awrd opints if useful*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289361#M786980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T06:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289362#M786981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul , &lt;/P&gt;&lt;P&gt;  Could you please specify what exactly do you want to do.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289362#M786981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T06:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289363#M786982</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;  In the given code, it is not clear about IT_DISPLAY internal table. What data does it contain and whether there is any link between WA_PLAF and IT_DISPLAY. It is not clear, why u are trying to use WA_PLAF index to modify IT_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If this point is clear, i hope u can easily solve.&lt;/P&gt;&lt;P&gt; Let us know the relation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289363#M786982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T06:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289364#M786983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT IT_AFPO BY PLNUM.&lt;/P&gt;&lt;P&gt;SORT IT_PLAF BY PLNUM.&lt;/P&gt;&lt;P&gt;LOOP AT IT_AFPO INTO WA_AFPO.&lt;/P&gt;&lt;P&gt;LOOP AT IT_PLAF INTO WA_PLAF.&lt;/P&gt;&lt;P&gt;W_INDEX = SY-TABIX.&lt;/P&gt;&lt;P&gt;IF WA_PLAF-PLNUM = WA_AFPO-PLNUM.&lt;/P&gt;&lt;P&gt;MOVE:WA_PLAF-GSMNG TO WA_DISPLAY-GAMNG.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY IT_DISPLAY INDEX W_INDEX FROM&lt;/STRONG&gt;WA_DISPLAY TRANSPORTING GAMNG.*&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR:WA_PLAF,WA_DISPLAY.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR:WA_AFPO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since IT_DISPLAY is a new table use append IT_DISPLAY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289364#M786983</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-01-07T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289365#M786984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per u r code the wk_tabix will contain the index of IT_PLAF...&lt;/P&gt;&lt;P&gt;then how can u modify  IT_DISPLAY with the index of IT_PLAF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289365#M786984</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-01-07T06:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289366#M786985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Arun/Ramesh,&lt;/P&gt;&lt;P&gt;IT_DISPLAY is the internal table which contains the data to be displayed.&lt;/P&gt;&lt;P&gt;My problem is that if there is a planned order quantity of 10,and production order quantity for that planned order is also 10,then no problem.&lt;/P&gt;&lt;P&gt;But if it is anything less than 10,then the problem is that it shows 0.&lt;/P&gt;&lt;P&gt;also when a planned order quantity is converted to planned order quantity completely (that is 10 out of 10)&lt;/P&gt;&lt;P&gt;then from PLAF TABLE no more contains that PLNUM.&lt;/P&gt;&lt;P&gt;bUT IF IT IS PARTIAL(ANYTHING LESS THAN 10),then that PLNUM IS COMMON in both PLAF AND AFPO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289366#M786985</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-01-07T06:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289367#M786986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Keshu,&lt;/P&gt;&lt;P&gt;How can i do this.yes you are correct.&lt;/P&gt;&lt;P&gt;Can uou tell me some alternative way out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 06:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289367#M786986</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-01-07T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem-Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289368#M786987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a variable and keep Incrementing in the inner loop and clear it in the outer loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ur loopng and modifying ur values consider the value of this variable as the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem-index/m-p/3289368#M786987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:09:21Z</dc:date>
    </item>
  </channel>
</rss>

