<?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: diff between  stop ,exit ,check ,continue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590798#M864559</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;Please refer ABAPDOCU TCode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 11:18:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T11:18:13Z</dc:date>
    <item>
      <title>diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590791#M864552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;abapers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590791#M864552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590792#M864553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using SAP help or the search function on this forum before you post such an ignorant question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590792#M864553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590793#M864554</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 :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;&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;&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;&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;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;CHECK logexp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK evaluates the subsequent logical expression. If it is&lt;/P&gt;&lt;P&gt;true, the processing continues with the next statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In loop structures like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO ... ENDDO&lt;/P&gt;&lt;P&gt;WHILE ... ENDWHILE&lt;/P&gt;&lt;P&gt;LOOP ... ENDLOOP&lt;/P&gt;&lt;P&gt;SELECT ... ENDSELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK with a negative outcome terminates the current loop pass&lt;/P&gt;&lt;P&gt;and goes back to the beginning of the loop to start the next&lt;/P&gt;&lt;P&gt;pass, if there is one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In structures like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ... ENDFORM&lt;/P&gt;&lt;P&gt;FUNCTION ... ENDFUNCTION&lt;/P&gt;&lt;P&gt;MODULE ... ENDMODULE&lt;/P&gt;&lt;P&gt;AT events&lt;/P&gt;&lt;P&gt;GET events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK with a negative outcome terminates the routine or&lt;/P&gt;&lt;P&gt;modularization unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If CHECK is neither in a loop nor a routine nor a&lt;/P&gt;&lt;P&gt;modularization unit, a negative logical expression terminates&lt;/P&gt;&lt;P&gt;the current event. In contrast, the statement REJECT terminates&lt;/P&gt;&lt;P&gt;the current event, even from loops or subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within loop structures like&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 ... ENDDO &lt;/P&gt;&lt;P&gt;WHILE ... ENDWHILE &lt;/P&gt;&lt;P&gt;LOOP ... ENDLOOP &lt;/P&gt;&lt;P&gt;SELECT ... ENDSELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTINUE terminates the current loop pass, returns the&lt;/P&gt;&lt;P&gt;processing to the beginning of the loop and starts the nex&lt;/P&gt;&lt;P&gt;loop pass, if there is one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO loop: Omit an area (10 ... 20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 100 TIMES.&lt;/P&gt;&lt;P&gt;IF SY-INDEX &amp;gt;= 10 AND SY-INDEX &amp;lt;= 20.&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;...&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;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590793#M864554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590794#M864555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Keyword			Purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTINUE Terminating the Loop Pass Unconditionally &lt;/P&gt;&lt;P&gt;CHECK	Terminating the Loop Pass Conditionally &lt;/P&gt;&lt;P&gt;EXIT	Terminating a Loop Entirely &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To terminate a loop pass immediately without any condition, use the CONTINUE statement as follows:&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;This produces the following output:&lt;/P&gt;&lt;P&gt;         1          3          4&lt;/P&gt;&lt;P&gt;Here, the system terminates the second loop pass without processing the WRITE statement&lt;/P&gt;&lt;P&gt;To terminate a loop pass conditionally, use the CHECK statement as follows:&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;	CHECK &amp;lt;condition&amp;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;This produces the following output:&lt;/P&gt;&lt;P&gt;         2          3&lt;/P&gt;&lt;P&gt;Here, the system terminates the first and the fourth loop pass without processing the WRITE statement because SY-INDEX does not fall between 2 and 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To terminate a loop entirely without any condition, use the EXIT statement as follows:&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;		EXIT.&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;This produces the following output:&lt;/P&gt;&lt;P&gt;         1          2&lt;/P&gt;&lt;P&gt;Here, the system terminates the entire loop processing in the third loop pass without processing the WRITE statement or the fourth loop pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590794#M864555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590795#M864556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590795#M864556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590796#M864557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;STOP:moves the control to END-OF-SELECTION event.&lt;/P&gt;&lt;P&gt;         with STOP you can end an event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT:moves the control out of the loop or subroutine or program.if you write EXIT  inside a subroutine then control moves out of the routine.if you code EXIT in a program control moves out of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;CHECK is conditional.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Check statement is like IF and EXIT combined. That is if check statement fails then it skips the programing code next..&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 &amp;gt; 2.&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;&lt;STRONG&gt;output:&lt;/STRONG&gt;3 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;CONTINUE&lt;/U&gt; is non conditional.&lt;/P&gt;&lt;P&gt;Continue statement is used inside the loops if we want to again start the loop with the same record thus there is no exit..&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 not sy-index &amp;gt; 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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output:&lt;/STRONG&gt;3 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590796#M864557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590797#M864558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sravanthiaksha ...  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the following thread &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4878964"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5060969"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a bit ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kripa Rangachari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590797#M864558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590798#M864559</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;Please refer ABAPDOCU TCode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 11:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590798#M864559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  stop ,exit ,check ,continue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590799#M864560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 immediately. The ABAP runtime environment triggers the next event.&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;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;CHECK : if the statement fails then skips the current loop pass. But it doesnot exit the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTINUE : skips the current loop pass. But it doesnot exit the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL&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, 26 Mar 2008 11:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-stop-exit-check-continue/m-p/3590799#M864560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T11:41:11Z</dc:date>
    </item>
  </channel>
</rss>

