<?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: abt conditional statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209231#M472994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 09:44:41 GMT</pubDate>
    <dc:creator>former_member223446</dc:creator>
    <dc:date>2007-05-22T09:44:41Z</dc:date>
    <item>
      <title>abt conditional statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209227#M472990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;difference between exit check continue stop.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 12:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209227#M472990</guid>
      <dc:creator>former_member223446</dc:creator>
      <dc:date>2007-04-27T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: abt conditional statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209228#M472991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;Gets you out of the current processing block.&lt;/P&gt;&lt;P&gt;INside a loop, if would get you out of the loop(Even if it is inside some processing block inside the loop).&lt;/P&gt;&lt;P&gt;In start-of-selection event, it gets you out of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check.&lt;/P&gt;&lt;P&gt;it would get you out of the current processing block if condition is met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;Goes to the next loop pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;comes out of the start-of-selection event and goes to the first statement of end-of-selection.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 12:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209228#M472991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: abt conditional statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209229#M472992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taken from F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Terminating Loops&lt;/P&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 STOPand REJECT statements belong to the latter group (see Exiting Eventblocks).&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, CHECKand 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 EXITcan 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;Terminating a Loop Pass Unconditionally&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;CONTINUE.&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 list 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;To terminate a single loop pass conditionally, use the CHECK condition statement in the statement block of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK condition.&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. condition 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 list 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;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;EXIT.&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 list 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; &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;/i&amp;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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 13:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209229#M472992</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-27T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: abt conditional statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209230#M472993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within a loop structure: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXIT&amp;lt;/b&amp;gt; Within a loop structure: Terminates loop processing (DO, WHILE, LOOP, SELECT). &lt;/P&gt;&lt;P&gt;Within subroutines and other modularization units (but not in a loop structure): &lt;/P&gt;&lt;P&gt;Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE). &lt;/P&gt;&lt;P&gt;Outside loop structures and modularization units (report 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;&amp;lt;b&amp;gt;CONTINUE&amp;lt;/b&amp;gt; Within loop structures, terminates the current loop pass, returns the processing to the beginning of the loop and starts the next loop pass, if there is one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CHECK&amp;lt;/b&amp;gt; if condition is true, the processing continues with the next statement else work like CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;STOP&amp;lt;/b&amp;gt; This statement terminates a processing block in an executable program.(exit from an INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION, and GET events and go to END-OF-SELECTION) better use EXIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 13:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209230#M472993</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-27T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: abt conditional statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209231#M472994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 09:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-conditional-statements/m-p/2209231#M472994</guid>
      <dc:creator>former_member223446</dc:creator>
      <dc:date>2007-05-22T09:44:41Z</dc:date>
    </item>
  </channel>
</rss>

