<?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: difference between break stop and exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324479#M510710</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;stop statement will stop the execution of the programme&lt;/P&gt;&lt;P&gt;and returns to selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and exit statment skips the loop like do or while or loop &lt;/P&gt;&lt;P&gt;and continues the further processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 04:19:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T04:19:54Z</dc:date>
    <item>
      <title>difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324475#M510706</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;what is the difference between break stop and exit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanks in advance.&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt; bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324475#M510706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324476#M510707</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;BREAK is used to put hard break-point in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP is used to stop the program in start-of-selection...and if the END-OF-SELECTION is given..Then the control will go to that event if the STOP statement is used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT will exit depends on where you give..If given in an event...then it will exit out of the event..if given in a subroutine..it will come out of the subroutine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324476#M510707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324477#M510708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stop : where ever you use stop command ,it will come to end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit - if you use loop and endloop. ,it will come out from that loop.&lt;/P&gt;&lt;P&gt;        if you use in perform routine,then it will come out from perform routine&lt;/P&gt;&lt;P&gt;       if you use in function module ,then it will come out from function module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324477#M510708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324478#M510709</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;Stop : Can be used only in the following events - AT SELECTION-SCREEN (without additions), START-OF-SELECTION &amp;amp; GET. On encounterng STOP, it trigeers the END-OF-SELECTION immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit: Within a Loop, it terminates the LOOP processing. In processing blocks, it ends the cureent processing block. It is recommended not to use EXIT in processing blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;EXIT&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/exit_.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/exit_.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/stop.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/stop.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324478#M510709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324479#M510710</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;stop statement will stop the execution of the programme&lt;/P&gt;&lt;P&gt;and returns to selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and exit statment skips the loop like do or while or loop &lt;/P&gt;&lt;P&gt;and continues the further processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324479#M510710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324480#M510711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXIT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If the EXIT statement is executed outside of a loop, it will immediately terminate the current processing block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the processing block has been executed, the runtime environment behaves in such a way that it follows with the exception Reporting Event Blocks START-OF-SELECTION and GET the schema from Leave Processing Blocks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the Reporting Processing Blocks START-OF-SELECTION and GET have been exited using EXIT, the runtime environment does not trigger any further reporting events. Instead, it directly calls the list processor for displaying the basic list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR STOP:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement STOP is only to be used in executable programs and in the following event blocks: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You leave these event blocks via STOP, and the runtime environment triggers the event END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The statement STOP is forbidden in methods and, since Release 6.10, leads to an uncatchable exception during the processing of screens called with CALL SCREEN and in programs not called with SUBMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Ending the event blocks GET sbook after max postings have been issued, and branching to END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: sflight, sbook. &lt;/P&gt;&lt;P&gt;DATA: bookings TYPE i, &lt;/P&gt;&lt;P&gt;      max TYPE i VALUE 100. &lt;/P&gt;&lt;P&gt;GET sflight. &lt;/P&gt;&lt;P&gt;  WRITE: / sflight-carrid, sflight-connid, sflight-fldate. &lt;/P&gt;&lt;P&gt;GET sbook. &lt;/P&gt;&lt;P&gt;  bookings = bookings + 1. &lt;/P&gt;&lt;P&gt;  WRITE: / sbook-bookid, sbook-customid. &lt;/P&gt;&lt;P&gt;  IF bookings = max. &lt;/P&gt;&lt;P&gt;    STOP. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;  WRITE: / 'First', bookings, 'bookings'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324480#M510711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324481#M510712</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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;STOP&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;If you use the &amp;lt;b&amp;gt;STOP&amp;lt;/b&amp;gt; statement within an event block, 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 AT SELECTION-SCREEN event onwards, the system always jumps from a STOP statement directly to the END-OF-SELECTION statement. Once the corresponding event block has been processed, the system displays the list. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXAMPLE TO STOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT EVENT_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: SPFLI, SFLIGHT, SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;   WRITE 'Test program for STOP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET SBOOK.&lt;/P&gt;&lt;P&gt;   WRITE: 'Bookid', SBOOK-BOOKID.&lt;/P&gt;&lt;P&gt;   STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;   WRITE: / 'End of Selection'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test Program for STOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bookid 00010001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End of Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as the first line of SBOOK has been read, the system calls the END-OF-SELECTION event block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;EXIT&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;b&amp;gt;I&lt;/P&gt;&lt;P&gt;f you use the STOP statement within an event block but not in a loop, the system stops processing the block immediately&amp;lt;/b&amp;gt;. The ABAP runtime environment triggers the next event according to the following diagram:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;BREAK&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt; A break statement results in the termination of the statement to which it applies (switch, for, do, or while). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;AshokReddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324481#M510712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324482#M510713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BREAK -  there is no keyword called break in abap rather u have CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP -  when STOP is trigerred the cursor moves to the end of selection event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT  = It is used to come out of the current loop.&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;BALAJI.                  Assign points if its helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324482#M510713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: difference between break stop and exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324483#M510714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;stop will triffer END-OF_SELECTION event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit will take  you out of the innermost loop.&lt;/P&gt;&lt;P&gt;and there is no break statement in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudha.&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-break-stop-and-exit/m-p/2324483#M510714</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-06-08T04:43:59Z</dc:date>
    </item>
  </channel>
</rss>

