<?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: Is this loop cond correct? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203862#M763714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look closely, I am checking the sy-subrc outside the inner loop (itab2 loop) which means I want to know if a record satisfying the condition is found in itab2 or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 19:55:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-10T19:55:31Z</dc:date>
    <item>
      <title>Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203841#M763693</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;itab1 has from &amp;amp; to dates &amp;amp; itab2 has only budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had written a loop as below:&lt;/P&gt;&lt;P&gt;        loop at itab2 where budat &amp;lt;b&amp;gt;ge&amp;lt;/b&amp;gt; itab1-from_date&lt;/P&gt;&lt;P&gt;                           and budat &amp;lt;b&amp;gt;le&amp;lt;/b&amp;gt; itab1-to_date.&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;when a valid date comes between from date &amp;amp; to_date, the loop is returing sy-subrc as 4. Seems something wrong in my loop condition.&lt;/P&gt;&lt;P&gt;can soemone correct this for me if so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dany&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 18:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203841#M763693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T18:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203842#M763694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How have you populated itab1-from_date and itab1-to_date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 18:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203842#M763694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203843#M763695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab2 into wa2.
 if wa2-budat GE itab1-from_date and wa2-budat LE itab1-to_date.
* Do process
 endif. 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 18:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203843#M763695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203844#M763696</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 loop condition seems to be fine. Not sure why you are getting sy-subrc 4. Do you have some sample data with you?&lt;/P&gt;&lt;P&gt;&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>Mon, 10 Dec 2007 18:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203844#M763696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203845#M763697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suppose, the budat in itab2 has values '20070827' and the &lt;/P&gt;&lt;P&gt;itab1-from_date =  20070810&lt;/P&gt;&lt;P&gt;itab1-to_date = 20070910. &lt;/P&gt;&lt;P&gt;Here the itab2-budat definitely lies in between from &amp;amp; to dates but after the above loop cond is processed sy-subrc turns to be 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203845#M763697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203846#M763698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're going to have to post your code if you really want help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203846#M763698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203847#M763699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the loop should work definitely. Could you post the code as Rob has suggested. &lt;/P&gt;&lt;P&gt;&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>Mon, 10 Dec 2007 19:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203847#M763699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203848#M763700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob &amp;amp; Vijy,&lt;/P&gt;&lt;P&gt;The itab2 is getting popluated using an FM: FKK_READ_LAST_PAYMENTS&lt;/P&gt;&lt;P&gt;itab2 resembles a strcuture called FKKPAID which is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUDAT	BUDAT_KK	DATS	8	 Posting date in doc&lt;/P&gt;&lt;P&gt;CPUDT	CPUDT	DATS	8	0	   Accounting document  &lt;/P&gt;&lt;P&gt;CPUTM	CPUTM	TIMS	6	0	  Time of entry&lt;/P&gt;&lt;P&gt;OPBEL	OPBEL_KK	CHAR	12	 Contract Account doc no&lt;/P&gt;&lt;P&gt;WAERS	WAERS	CUKY	5	0	Currency Key&lt;/P&gt;&lt;P&gt;BETRW	BETZU_KK	CURR	13	2  payment amount&lt;/P&gt;&lt;P&gt;BETZG	BETZG_KK	CURR	13	2 Total amount of payment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;STRONG&gt;Code&lt;/STRONG&gt;**********&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;        i_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;        loop at payments where budat gt yt_usage-from_date&lt;/P&gt;&lt;P&gt;                           and budat le yt_usage-to_date.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of change - GANTIH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            itab1-PAY_DATE = itab2-BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        itab1-PAY_AMOUNT = itab2-BETRW.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            itab1-PAY_AMOUNT = itab2--BETZG.&lt;/P&gt;&lt;P&gt;            itab1-pay_opbel = itab2-opbel.&lt;/P&gt;&lt;P&gt;            MODIFY itab1 INDEX I_TABIX.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203848#M763700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203849#M763701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I see it from your code, you are not using itab1 dates but "yt_usage" dates. So where is the link between itab1 and itab2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203849#M763701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203850#M763702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Oh! in order to simplify the terminology i used itab1 &amp;amp; itba2.&lt;/P&gt;&lt;P&gt; i mean  : itab1 --&amp;gt;yt_usage&lt;/P&gt;&lt;P&gt;  itab2 --&amp;gt; payments&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience. Pls suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203850#M763702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203851#M763703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It makes no sense to test sy-subrc in the loop like this. It retains whatever value it had prior to entering it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab1.
  i_tabix = sy-tabix.
  LOOP AT payments
    WHERE budat GT yt_usage-from_date
      AND budat LE yt_usage-to_date.
* end of change - GANTIH
    itab1-pay_date = itab2-budat.

* itab1-PAY_AMOUNT = itab2-BETRW.
    itab1-pay_amount = itab2--betzg.
    itab1-pay_opbel = itab2-opbel.
    MODIFY itab1 INDEX i_tabix.

  ENDLOOP.
ENDLOOP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should get rid of the nested loops as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203851#M763703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203852#M763704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob &lt;/P&gt;&lt;P&gt;You mean sy-subrc cannot be used? please explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think i can use "Read" here instead of loop at ..where...can you suggest an alternative?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203852#M763704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203853#M763705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are updating "itab1" with the posting date based on the condition that the posting date should lie between the start and end dates, do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab2 WHERE budat GE itab1-from_date AND budat LE itab1-to_date.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;itab1-PAY_DATE = itab2-BUDAT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab1-PAY_AMOUNT = itab2-BETRW.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;itab1-PAY_AMOUNT = itab2--BETZG.&lt;/P&gt;&lt;P&gt;itab1-pay_opbel = itab2-opbel.&lt;/P&gt;&lt;P&gt;MODIFY itab1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203853#M763705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203854#M763706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The SY-SUBRC value will not change for each pass of the loop. &lt;/P&gt;&lt;P&gt; As rob mentioned it only has the last value before entering the  loop.&lt;/P&gt;&lt;P&gt;&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>Mon, 10 Dec 2007 19:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203854#M763706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203855#M763707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you are in the inner loop, you know that you already have matches on both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use READs instead of nested LOOPs, please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops"&amp;gt;The Performance of Nested Loops&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203855#M763707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203856#M763708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob  - Can i use clear before checking before if sy-subrc = 0 so that the previous values are cleared from the header area?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203856#M763708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203857#M763709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob -  No, There need not be any matching entries for both the tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203857#M763709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203858#M763710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not all ABAP statements set sy-subrc. The code I posted should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203858#M763710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203859#M763711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may not ahve matching entries for both tables, but if you are in the inner loop, you &amp;lt;u&amp;gt;must&amp;lt;/u&amp;gt; have a match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203859#M763711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is this loop cond correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203860#M763712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you enter the LOOP, it means a record is found and so SY-SUBRC will always be 0 inside the LOOP. Since you are updating only one record of itab1, even if there are several records of itab2 that may satisfy the criteria of posting date between from and to dates, you can simply exit the loop as I suggested previously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-this-loop-cond-correct/m-p/3203860#M763712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T19:50:38Z</dc:date>
    </item>
  </channel>
</rss>

