<?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: stop. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578377#M589405</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: Stops the program and goes to End of selection&lt;/P&gt;&lt;P&gt;EXIT : exits that processing block or Loop pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 05:32:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T05:32:14Z</dc:date>
    <item>
      <title>stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578375#M589403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;what is the deference bwstop and exit.while using these all functionlatyies means loop,subroutines,modules.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;radhakrishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578375#M589403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578376#M589404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP contains termination statements that allow you to terminate a loop prematurely. There are two categories of termination statement - those that only apply to the loop, and those that apply to the entire processing block in which the loop occurs. The STOP and REJECT statements belong to the latter group, and are described in more detail under Leaving Event Blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The termination statements that apply only to the loop in which they occur are CONTINUE, CHECK, and EXIT. You can only use the CONTINUE statement in a loop. CHECK and EXIT, on the other hand, are context-sensitive. Within a loop, they only apply to the execution of the loop itself. Outside of a loop, they terminate the entire processing block in which they occur (subroutine, dialog module, event block, and so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTINUE, CHECK, and EXIT can be used in all four loop types in ABAP (DO, WHILE, LOOP, and SELECT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To terminate a single loop pass immediately and unconditionally, use the CONTINUE statement in the statement block of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the statement, the system ignores any remaining statements in the current statement block, and starts the next loop pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;IF SY-INDEX = 2.&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;WRITE SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 3 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second loop pass is terminated without the WRITE statement being processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Terminating a Loop Pass Conditionally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To terminate a single loop pass conditionally, use the CHECK &amp;lt;condition&amp;gt; statement in the statement block of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the condition is not true, any remaining statements in the current statement block after the CHECK statement are ignored, and the next loop pass starts. &amp;lt;condition&amp;gt; can be any logical expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;CHECK SY-INDEX BETWEEN 2 and 3.&lt;/P&gt;&lt;P&gt;WRITE SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first and fourth loop passes are terminated without the WRITE statement being processed, because SY-INDEX is not between 2 and 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exiting a Loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To terminate an entire loop immediately and unconditionally, use the EXIT statement in the statement block of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement, the loop is terminated, and processing resumes after the closing statement of the loop structure (ENDDO, ENDWHILE, ENDLOOP, ENDSELECT). In nested loops, only the current loop is terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;IF SY-INDEX = 3.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;WRITE SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the third loop pass, the loop is terminated before the WRITE statement is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can visit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3564358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3564358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for further info&lt;/P&gt;&lt;P&gt;&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578376#M589404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578377#M589405</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: Stops the program and goes to End of selection&lt;/P&gt;&lt;P&gt;EXIT : exits that processing block or Loop pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578377#M589405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578378#M589406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;stop triggers end of selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as exit in loop,subroutines,modules comes out of that respective module and excution continues from next executable statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and exit in the code part will come out of the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578378#M589406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578379#M589407</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;if we use the exit statement&lt;/P&gt;&lt;P&gt;in any kind of module or loop it will come out of that and continues the next part of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we stop &lt;/P&gt;&lt;P&gt;in the start of selection event and what ever may be the looop or module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will come toend of selection&lt;/P&gt;&lt;P&gt;and if you give information message followed with stop &lt;/P&gt;&lt;P&gt;then it willl go to selection screen of the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is an error message with stop statement &lt;/P&gt;&lt;P&gt;it will leave the selection screen and remains a blank page for you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578379#M589407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578380#M589408</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;b&amp;gt;STOP &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &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;&amp;lt;b&amp;gt;Example &amp;lt;/b&amp;gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXIT - loop &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;EXIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &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;Note &lt;/P&gt;&lt;P&gt;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;Example &lt;/P&gt;&lt;P&gt;Leaving a loop with EXIT if the loop index sy-index is greater than a number limit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA limit TYPE i VALUE 10. &lt;/P&gt;&lt;P&gt;DO. &lt;/P&gt;&lt;P&gt;  IF sy-index &amp;gt; limit. &lt;/P&gt;&lt;P&gt;    EXIT. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;  WRITE / sy-index. &lt;/P&gt;&lt;P&gt;ENDDO. &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;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578380#M589408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578381#M589409</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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &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;START-OF-SELECTION &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;EXIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &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 prodessing 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;Note &lt;/P&gt;&lt;P&gt;SAP recommend using EXIT only within loops (see EXIT (loops) ). Instead, use RETURN to leave processing blocks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578381#M589409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: stop.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578382#M589410</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;Exits a reporting event.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;Can only occur in event blocks for reporting events. Leaves the block and jumps to END-OFSELECTION.&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;&lt;/P&gt;&lt;P&gt;Terminates a loop or processing block.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;Within a loop: The entire loop is terminated, and processing continues with the first statement following the loop.&lt;/P&gt;&lt;P&gt;Outside a loop: Terminates the current processing block.&lt;/P&gt;&lt;P&gt;In a reporting event: Jumps directly to the output list.&lt;/P&gt;&lt;P&gt;&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>Wed, 25 Jul 2007 12:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2578382#M589410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:31:49Z</dc:date>
    </item>
  </channel>
</rss>

