<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SAPLab-SAP Tips! ABAP Tips! &#187; exit</title>
	<atom:link href="http://www.saplab.net/tag/exit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saplab.net</link>
	<description>SAP ABAP User!</description>
	<lastBuildDate>Fri, 09 Dec 2011 14:09:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Difference between exit and stop in ABAP</title>
		<link>http://www.saplab.net/difference-between-exit-and-stop-in-abap/</link>
		<comments>http://www.saplab.net/difference-between-exit-and-stop-in-abap/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 07:46:32 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[ABAP Syntax]]></category>
		<category><![CDATA[exit]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[Syntax]]></category>

		<guid isPermaLink="false">http://www.saplab.net/different-between-exit-and-stop-in-abap/</guid>
		<description><![CDATA[Question: Could you tell me the difference between exit and stop when used in different situations like inside loop,i the...]]></description>
			<content:encoded><![CDATA[<p><strong>Question</strong>: Could you tell me the difference between exit and stop when used in different situations like inside loop,i the program etc?</p>
<p><strong>Answer</strong>:</p>
<p>Hi,<br />
STOP :This statement terminates a processing block in an executable  program.<br />
The statement is only intended for use in the INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION, and GET events. It  terminates the current processing block in an executable  program and triggers the END-OF-SELECTION event. In all other<br />
processing blocks, or when you do not want to trigger the  END-OF-SELECTION event, you must use EXIT.<br />
EXIT.<br />
- Within a loop structure:<br />
Terminates loop processing (DO, WHILE, LOOP, SELECT).<br />
- Within subroutines and other modularization units (but not  in a loop structure):<br />
Leaves the subroutine or modularization unit (FORM, MODULE,  FUNCTION, TOP-OF-PAGE, END-OF-PAGE).<br />
- Outside loop structures and modularization units (report  processing):<br />
Terminates report processing and triggers list display.</p>
<p>DATA: SAP_COUNT TYPE I,<br />
WA_T100 TYPE T100.<br />
SELECT * FROM T100 INTO WA_T100 WHERE SPRSL = SY-LANGU AND<br />
ARBGB = &#8216;DS&#8217;.<br />
WRITE / WA_T100-TEXT.<br />
IF WA_T100-TEXT CS &#8216;SAP&#8217;.<br />
ADD 1 TO SAP_COUNT.<br />
IF SAP_COUNT = 3.<br />
EXIT.<br />
ENDIF.<br />
ENDIF.<br />
ENDSELECT.</p>
<p>via <a title="https://forums.sdn.sap.com/thread.jspa?threadID=404985&amp;tstart=61350" href="https://forums.sdn.sap.com/thread.jspa?threadID=404985&amp;tstart=61350">https://forums.sdn.sap.com/thread.jspa?threadID=404985&amp;tstart=61350</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/abap-get-stad-data-log-syntax/" title="ABAP get STAD data log Syntax">ABAP get STAD data log Syntax</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/difference-between-exit-and-stop-in-abap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

