<?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: problem with loop inside loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772460#M907734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur right i can clear, but the problem is, if i clear there is no data in both headers, it is ok fine, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but once 1st loop is finish ( loop at it_prps) it is having 1st record, then control comes to 2nd loop, here same time am doing looping and comparing, so once control comes to 2nd loop there is no header data to compare . &lt;/P&gt;&lt;P&gt;so its not comparing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how can i procede.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;sudha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 11:40:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T11:40:27Z</dc:date>
    <item>
      <title>problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772445#M907719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ve writtern some peace of code like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_prps.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CASE month.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WHEN '01'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_final into it_output&lt;/P&gt;&lt;P&gt;    WHERE pspnr1 = it_prps-pspnr&lt;/P&gt;&lt;P&gt;      AND wrttp = '04'&lt;/P&gt;&lt;P&gt;      AND beltp = '02'&lt;/P&gt;&lt;P&gt;      AND versn = '000'&lt;/P&gt;&lt;P&gt;      AND ( vorga = 'COIN' OR vorga = 'RKU2' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE it_output-wlp01 TO t_act_billing.&lt;/P&gt;&lt;P&gt;      act_billing = act_billing + t_act_billing.&lt;/P&gt;&lt;P&gt;      if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;         write:/10 'There ia no data....'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in above code there are 2loops, &lt;/P&gt;&lt;P&gt; 1st is looping properly but 2nd one is not looping .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_prps-pspnr and it_final-pspnr1 same.&lt;/P&gt;&lt;P&gt;but loop at it_final into it_output is not looping, but in WHERE clause all cond all right. but why its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way to write this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; could anybady tell me where i went wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772445#M907719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772446#M907720</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;Just comment the below code and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc EQ 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write:/10 'There ia no data....'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772446#M907720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772447#M907721</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 loop u can use read Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;read table&lt;/STRONG&gt; it_final into it_output&lt;/P&gt;&lt;P&gt;WHERE pspnr1 = it_prps-pspnr&lt;/P&gt;&lt;P&gt;AND wrttp = '04'&lt;/P&gt;&lt;P&gt;AND beltp = '02'&lt;/P&gt;&lt;P&gt;AND versn = '000'&lt;/P&gt;&lt;P&gt;AND ( vorga = 'COIN' OR vorga = 'RKU2' ).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc EQ 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/10 'There ia no data....'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;MOVE it_output-wlp01 TO t_act_billing.&lt;/P&gt;&lt;P&gt;act_billing = act_billing + t_act_billing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772447#M907721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772448#M907722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;no velangini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_prps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at it_final into it_output&lt;/P&gt;&lt;P&gt;WHERE pspnr1 = it_prps-pspnr&lt;/P&gt;&lt;P&gt;AND wrttp = '04'&lt;/P&gt;&lt;P&gt;AND beltp = '02'&lt;/P&gt;&lt;P&gt;AND versn = '000'&lt;/P&gt;&lt;P&gt;AND ( vorga = 'COIN' OR vorga = 'RKU2' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ 'no data'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE it_output-wlp01 TO t_act_billing.&lt;/P&gt;&lt;P&gt;act_billing = act_billing + t_act_billing.&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/10 'There ia no data....'.&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;if i check sy-subrc also, control is not coming to if statment. its not checking subrc is 0 ir not at all.&lt;/P&gt;&lt;P&gt;directly it is coming to last endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; could anyone check pls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rdgs,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772448#M907722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772449#M907723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya,&lt;/P&gt;&lt;P&gt;thanks for  ur replay, if i use read stat it is giving comma error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am nt sure can we use where clause with read stat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Rgds,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772449#M907723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772450#M907724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the where clause of the loop has all constants but for it_prps-pspnr, did you check if there are no leading zeroes in one of the variables ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per me, there might be leading zeroes on either the left hand side or the Right hand side of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if this helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranjal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772450#M907724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772451#M907725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further, I do not think read will help because what if ther are more than 1 record satisfyin the conditions in the where clause? we want the sum so loop has to be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Read statement cant have NOT EQUALTO equations, it only supports EQ and not NE/GT/LT operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUdarshan, read statement cant have WHERE clause but it can have WITH KEY in place of WHERE, though you wont need read statement here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772451#M907725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772452#M907726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pranjal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is no leading zeros like that , both data is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; could check is there any other thing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772452#M907726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772453#M907727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then we will require to know how you ahve defined the 2 internal tables . If you could paste that part of the data declaration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because if you are saying that both the tables have proper data, it only means that one of the AND conditions in the where clause is not getting satisfied...we will need to check the data declarations, if the hardcoded numbers in where clause are specified with the required length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772453#M907727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772454#M907728</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;The reason is in your second loop where condition you have used wrttp beltp versn vorga with some constant values. These constant values may not be satisfiedl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772454#M907728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772455#M907729</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;If you wanted to check is your LOOP successful or not, you have to use the sy-subrc after the ENDLOOP statement.&lt;/P&gt;&lt;P&gt;loop at...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final into it_output&lt;/P&gt;&lt;P&gt;WHERE pspnr1 = it_prps-pspnr&lt;/P&gt;&lt;P&gt;AND wrttp = '04'&lt;/P&gt;&lt;P&gt;AND beltp = '02'&lt;/P&gt;&lt;P&gt;AND versn = '000'&lt;/P&gt;&lt;P&gt;AND ( vorga = 'COIN' OR vorga = 'RKU2' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE it_output-wlp01 TO t_act_billing.&lt;/P&gt;&lt;P&gt;act_billing = act_billing + t_act_billing.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;write:/10 'There is no data in it_final....'.&lt;/P&gt;&lt;P&gt;endif.&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;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772455#M907729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772456#M907730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sudharsan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check whether the fields you comparing have the same type.&lt;/P&gt;&lt;P&gt; pspnr1 = it_prps-pspnr.&lt;/P&gt;&lt;P&gt; Example: pspnr in prps table in NUMC ,the field pspnr1 is also same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have to give the if sy-subrc = 0 condition at the end of  loop inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Karthik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772456#M907730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772457#M907731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;After abserving in Debugging, there is a pronlem with header data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in both tables the body data is same. but initially in header data is diff,&lt;/P&gt;&lt;P&gt;so body records are same. once first loop is execute the data of header is changing, so its not matching with 2nd table header data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so before looping 2tables can i delete header data from 2tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if can how ? can i use clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772457#M907731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772458#M907732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, you can. &lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this clears the header of the internal table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772458#M907732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772459#M907733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudharsan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were not able to identify the rootcause simple comment Where conditions fields except the pspnr and try with one more condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, first have the WRTTP field condition only in the where clause and comment other validations. You can simply identify the rootcause yourself when you check this one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE pspnr1 = it_prps-pspnr&lt;/P&gt;&lt;P&gt;AND wrttp = '04'&lt;/P&gt;&lt;P&gt;AND beltp = '02'&lt;/P&gt;&lt;P&gt;AND versn = '000'&lt;/P&gt;&lt;P&gt;AND ( vorga = 'COIN' OR vorga = 'RKU2' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your where condition would be correct but I am not sure about your constant values and format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the tables from which you fetch the values to the internal tables. If you give that I can analyse and provide the rootcause and solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Saravanan V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772459#M907733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem with loop inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772460#M907734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur right i can clear, but the problem is, if i clear there is no data in both headers, it is ok fine, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but once 1st loop is finish ( loop at it_prps) it is having 1st record, then control comes to 2nd loop, here same time am doing looping and comparing, so once control comes to 2nd loop there is no header data to compare . &lt;/P&gt;&lt;P&gt;so its not comparing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how can i procede.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;sudha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-loop-inside-loop/m-p/3772460#M907734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:40:27Z</dc:date>
    </item>
  </channel>
</rss>

