<?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: return statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545593#M578994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONTINUE:&amp;lt;/b&amp;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;PRE&gt;&lt;CODE&gt;DO 4 TIMES.
  IF SY-INDEX = 2.
    CONTINUE.
  ENDIF.
  WRITE SY-INDEX.
ENDDO.&lt;/CODE&gt;&lt;/PRE&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;&amp;lt;b&amp;gt;EXIT:&amp;lt;/b&amp;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;PRE&gt;&lt;CODE&gt;DO 4 TIMES.
  IF SY-INDEX = 3.
    EXIT.
  ENDIF.
  WRITE SY-INDEX.
ENDDO.&lt;/CODE&gt;&lt;/PRE&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;For list-processing follow this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm&lt;/A&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;Ashok reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2007 05:24:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-09T05:24:03Z</dc:date>
    <item>
      <title>return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545587#M578988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is return statement? why is it use for? what is the difference between return &amp;amp; exit ststements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 04:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545587#M578988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T04:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545588#M578989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;The return option enables you to return control to a calling program. You choose this option when you are in a subroutine, function module, or other called program, and you want to return to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit is A standard R/3 function used to leave the current task or application area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data may be lost, the SAP System prompts you to save your work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 04:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545588#M578989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T04:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545589#M578990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;EXIT statement exits from the report whereas RETURN statement returns u back to the report based on the condition u have given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 04:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545589#M578990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T04:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545590#M578991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Raman,&lt;/P&gt;&lt;P&gt;Check this below statemtn:&lt;/P&gt;&lt;P&gt;This will give you an idea than Screen calls List and once List is processed control is returned to the screen:&lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN &amp;lt;nnnn&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN-&amp;gt; LIST and again SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT:stop/ Exit - Terminates the loop immediately. Processing continues at the statement immediately foollowing endloop.&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;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545590#M578991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545591#M578992</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;return statement is used for transfering control from subroutine to callina area. return statement is used for transfering output from subroutine to calling area or calling function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit statement is used to quit the execution of current program or in current loop.&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;do 5 times.&lt;/P&gt;&lt;P&gt; if a = b.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt; write:/10 a.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above ex when a = b then control comes out of do loop and continues with next statement after enddo.&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.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545591#M578992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545592#M578993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is list-processing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545592#M578993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545593#M578994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONTINUE:&amp;lt;/b&amp;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;PRE&gt;&lt;CODE&gt;DO 4 TIMES.
  IF SY-INDEX = 2.
    CONTINUE.
  ENDIF.
  WRITE SY-INDEX.
ENDDO.&lt;/CODE&gt;&lt;/PRE&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;&amp;lt;b&amp;gt;EXIT:&amp;lt;/b&amp;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;PRE&gt;&lt;CODE&gt;DO 4 TIMES.
  IF SY-INDEX = 3.
    EXIT.
  ENDIF.
  WRITE SY-INDEX.
ENDDO.&lt;/CODE&gt;&lt;/PRE&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;For list-processing follow this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm&lt;/A&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;Ashok reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-statement/m-p/2545593#M578994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:24:03Z</dc:date>
    </item>
  </channel>
</rss>

