<?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: exit and stop statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698022#M624641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayuri,&lt;/P&gt;&lt;P&gt;   Exit Statement will terminate the loop and continue with the rest of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Stop Statement will branch out to the end of Selection event if End of Selection Event is not present it behaves same as EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Award Points if helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 12:34:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T12:34:56Z</dc:date>
    <item>
      <title>exit and stop statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698020#M624639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;explain exit and stop statements in loops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 12:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698020#M624639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T12:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: exit and stop statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698021#M624640</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 we use EXIT in a Loop: It will Terminate the LOOP processing and continues the execution immediately after the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we use STOP in a Loop: It will Terminate the LOOP processing and Triggers the Event END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 12:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698021#M624640</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-14T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: exit and stop statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698022#M624641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayuri,&lt;/P&gt;&lt;P&gt;   Exit Statement will terminate the loop and continue with the rest of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Stop Statement will branch out to the end of Selection event if End of Selection Event is not present it behaves same as EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Award Points if helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 12:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698022#M624641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T12:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: exit and stop statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698023#M624642</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;Hi,&lt;/P&gt;&lt;P&gt;STOP :This statement terminates a processing block in an excutable&lt;/P&gt;&lt;P&gt;program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement is only intended for use in the INITIALIZATION,&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN, START-OF-SELECTION, and GET events. It&lt;/P&gt;&lt;P&gt;terminates the current processing block in an executable&lt;/P&gt;&lt;P&gt;program and triggers the END-OF-SELECTION event. In all other&lt;/P&gt;&lt;P&gt;processing blocks, or when you do not want to trigger the&lt;/P&gt;&lt;P&gt;END-OF-SELECTION event, you must use EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Within a loop structure:&lt;/P&gt;&lt;P&gt;Terminates looop processing (DO, WHILE, LOOP, SELECT).&lt;/P&gt;&lt;P&gt;- Within subroutines and other modularization units (but not&lt;/P&gt;&lt;P&gt;in a loop structure):&lt;/P&gt;&lt;P&gt;Leaves the subroutine or modularization unit (FORM, MODULE,&lt;/P&gt;&lt;P&gt;FUNCTION, TOP-OF-PAGE, END-OF-PAGE).&lt;/P&gt;&lt;P&gt;- Outside loop structures and modularization units (report&lt;/P&gt;&lt;P&gt;processing):&lt;/P&gt;&lt;P&gt;Terminates report processing and triggers list display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: SAP_COUNT TYPE I,&lt;/P&gt;&lt;P&gt;WA_T100 TYPE T100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM T100 INTO WA_T100 WHERE SPRSL = SY-LANGU AND&lt;/P&gt;&lt;P&gt;ARBGB = 'DS'.&lt;/P&gt;&lt;P&gt;WRITE / WA_T100-TEXT.&lt;/P&gt;&lt;P&gt;IF WA_T100-TEXT CS 'SAP'.&lt;/P&gt;&lt;P&gt;ADD 1 TO SAP_COUNT.&lt;/P&gt;&lt;P&gt;IF SAP_COUNT = 3.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 12:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-and-stop-statements/m-p/2698023#M624642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T12:37:17Z</dc:date>
    </item>
  </channel>
</rss>

