<?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 /stop difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230692#M479890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;EXIT:&lt;/P&gt;&lt;P&gt;If the EXIT statement is listed within a loop, it leaves the loop by ending the current loop process. Program execution is continued after the closing statement in the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside of a loop, the EXIT statement leaves the current processing block (see EXIT - Processing block). Its recommend that you use EXIT within loops only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP:&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;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;GET &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;Reward all helpful answers!!!!&lt;/P&gt;&lt;P&gt;Younus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2007 12:15:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-11T12:15:37Z</dc:date>
    <item>
      <title>exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230688#M479886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz tell me the difference between exit and stop when used in different situations like inside loop,i the program  etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 12:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230688#M479886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230689#M479887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check these links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9ad735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9ad735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9ad735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9ad735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9ad735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9ad735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 12:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230689#M479887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T12:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230690#M479888</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 statement STOP is only to be used in executable programs and in the following event blocks: &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;GET &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;If the EXIT statement is listed within a loop, it leaves the loop by ending the current loop process. Program execution is continued after the closing statement in the loop. Outside of a loop, the EXIT statement leaves the current processing block (see EXIT - Processing block). We recommend that you use EXIT within loops only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET is keyword used in logical database programs.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 12:05:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230690#M479888</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-05-11T12:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230691#M479889</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;regards,&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 12:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230691#M479889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T12:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230692#M479890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;EXIT:&lt;/P&gt;&lt;P&gt;If the EXIT statement is listed within a loop, it leaves the loop by ending the current loop process. Program execution is continued after the closing statement in the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside of a loop, the EXIT statement leaves the current processing block (see EXIT - Processing block). Its recommend that you use EXIT within loops only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP:&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;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;GET &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;Reward all helpful answers!!!!&lt;/P&gt;&lt;P&gt;Younus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 12:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230692#M479890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230693#M479891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;STOP : Terminates a processing block of code  in an executable&lt;/P&gt;&lt;P&gt;program [report programs]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT: used to come out of progarm if it is used any where in a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 12:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230693#M479891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T12:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230694#M479892</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; where ever we use STOP control will directly come to END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT just comes out from the loop. Award point if it is useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 13:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230694#M479892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230695#M479893</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; where ever we use STOP control will directly come to END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT just comes out from the loop. Award point if it is useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 13:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230695#M479893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230696#M479894</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:&lt;/P&gt;&lt;P&gt;A subroutine normally ends at the ENDFORM statement. However, you can terminate them&lt;/P&gt;&lt;P&gt;earlier by using the EXIT or CHECK statement. When you terminate a subroutine with EXIT or&lt;/P&gt;&lt;P&gt;CHECK, the current values of the output parameters (CHANGING parameters passed by value)&lt;/P&gt;&lt;P&gt;are passed back to the corresponding actual parameter.&lt;/P&gt;&lt;P&gt;Use EXIT to terminate a subroutine unconditionally. The calling program regains control at the&lt;/P&gt;&lt;P&gt;statement following the PERFORM statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;PROGRAM FORM_TEST.&lt;/P&gt;&lt;P&gt;PERFORM TERMINATE.&lt;/P&gt;&lt;P&gt;WRITE 'The End'.&lt;/P&gt;&lt;P&gt;FORM TERMINATE.&lt;/P&gt;&lt;P&gt;WRITE '1'.&lt;/P&gt;&lt;P&gt;WRITE '2'.&lt;/P&gt;&lt;P&gt;WRITE '3'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;WRITE '4'.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;The produces the following output:&lt;/P&gt;&lt;P&gt;1 2 3 The End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP:&lt;/P&gt;&lt;P&gt;If you use the STOP statement within an event block, the system stops processing the block&lt;/P&gt;&lt;P&gt;immediately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230696#M479894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230697#M479895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;when stop is used in loop it simply comes out of the loop or else in a program it reaches the end of selection screen whereas exit gets the control to the next loop in a program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 10:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230697#M479895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T10:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: exit /stop difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230698#M479896</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;Leaving Event Blocks Using STOP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the STOP statement within an event block, the system stops processing the block immediately. 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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following program is connected to the logical database F1S.&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;Exiting Event Blocks Using 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. 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;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 processor directly when the EXITstatement occurs, and displays the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the EXIT statement occurs inside a DO, WHILE, or LOOP 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;&lt;/P&gt;&lt;P&gt;The following executable program is connected to the logical database F1S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_program_exit_1.&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 EXIT'.&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;  EXIT.&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 EXIT&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;After the first line of SBOOK has been read, the list is displayed immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following executable program is connected to the logical database F1S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_program_exit_2.&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;DATA flag(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF carrid-low IS INITIAL.&lt;/P&gt;&lt;P&gt;    flag = 'X'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  IF flag = 'X'.&lt;/P&gt;&lt;P&gt;    WRITE / 'No input for CARRID'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET sbook.&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;If the user does not enter a value for CARRID-LOW, the output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No selection made for CARRID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the first EXIT statement, the next START-OF-SELECTION event is triggered. After the second EXITstatement, the output list is displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to be reward all helpfull answers,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 10:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-stop-difference/m-p/2230698#M479896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T10:38:58Z</dc:date>
    </item>
  </channel>
</rss>

