<?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: How to exit the outer loop? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471144#M1417286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, do you mean there is other possible keyword that can help to exit more than one loop at a time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 14:08:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-20T14:08:05Z</dc:date>
    <item>
      <title>How to exit the outer loop?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471140#M1417282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help on how to exit all the loops? I have nested loops like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;LOOP1 &lt;/P&gt;&lt;P&gt;    LOOP2&lt;/P&gt;&lt;P&gt;        LOOP3&lt;/P&gt;&lt;P&gt;           Condition.&lt;/P&gt;&lt;P&gt;        ENDLOOP3&lt;/P&gt;&lt;P&gt;    ENDLOOP2&lt;/P&gt;&lt;P&gt;ENDLOOP1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Statements.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the condition is met, how to jump out of all the loops and then the program continues with Other Statements. Is there any direct keyword for this? (like EXIT, CONTINUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 13:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471140#M1417282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit the outer loop?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471141#M1417283</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;I don't think we have such fecility. You need to place the checks and exit from the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP1 
CLEAR l_flag.
LOOP2
LOOP3

If Condition.satisfied.
l_flag = 1.
EXIT.
endif.

ENDLOOP3

If l_flag = 1.
EXIT.
ENDIF.

ENDLOOP2

If l_flag = 1.
EXIT.
ENDIF.

ENDLOOP1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 13:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471141#M1417283</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-01-20T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit the outer loop?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471142#M1417284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the short answer is YES; we have exit and we have continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert the keyword, put your cursor on the word, press F1 and read...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 13:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471142#M1417284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit the outer loop?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471143#M1417285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod, thanks for the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471143#M1417285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T14:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit the outer loop?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471144#M1417286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, do you mean there is other possible keyword that can help to exit more than one loop at a time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-the-outer-loop/m-p/6471144#M1417286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T14:08:05Z</dc:date>
    </item>
  </channel>
</rss>

