<?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: Statement to break the loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545518#M853013</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;EXIT  command can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pavan t.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2008 06:57:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-19T06:57:03Z</dc:date>
    <item>
      <title>Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545515#M853010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to know which statment is used to break the loop after perticular situation is fullfilled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 06:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545515#M853010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T06:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545516#M853011</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;use &lt;STRONG&gt;EXIT.&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 06:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545516#M853011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545517#M853012</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;   Use CONTINUE to skip that record.&lt;/P&gt;&lt;P&gt;   Use EXIT to exit the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;CS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 06:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545517#M853012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T06:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545518#M853013</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;EXIT  command can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pavan t.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 06:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545518#M853013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T06:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545519#M853014</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;Use &lt;STRONG&gt;Exit&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.

if itab-field1 = 'ABC'.
exit.
endif.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using exit statement once itab-field1 contains ABC then it will come out of the loop without processing the other records in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;continue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.

if itab-field1 = 'ABC'.
  delete itab.
  continue.
endif.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using continue statement it will process the other records also.&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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sriram Ponna on Mar 19, 2008 12:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 07:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545519#M853014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545520#M853015</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;Go through the below link u can clearly understand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3564358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3564358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramya.R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 07:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545520#M853015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T07:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545521#M853016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;       use exit command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT&lt;/P&gt;&lt;P&gt;If you use the EXIT statement within an event block but not in a loop, the system stops processing the block immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before and during selection screen processing, the next event in the prescribed sequence is always called. From the START-OF-SELECTION event onwards, the system starts the list&lt;/P&gt;&lt;P&gt;processor directly when the EXIT statement occurs, and displays the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the EXIT statement occurs in a loop using DO, WHILE, or LOOP, it is the loop that terminates, not the processing block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 07:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545521#M853016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to break the loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545522#M853017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should find the EXIT, CHECK and CONTINUE commands useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 08:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-to-break-the-loop/m-p/3545522#M853017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T08:02:04Z</dc:date>
    </item>
  </channel>
</rss>

