<?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: Exit Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116193#M442956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;exit&amp;lt;/b&amp;gt; statement prevents further processing from occurring. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax for the exit Statement&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using EXIT to Stop Program Processing Dead in Its Tracks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1  report ztx1006.&lt;/P&gt;&lt;P&gt;2  write: / 'Hi'.&lt;/P&gt;&lt;P&gt;3  exit.&lt;/P&gt;&lt;P&gt;4  write: / 'There'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code produces this output: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit prevents further processing, so the exit on line 3 prevents line 4 from being executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit can be used in many situations. It can have varying effects depending on where it appears in the code. However, it always prevents further processing. Within loop structures, it leaves loop processing introduced by statements such as loop, select, do, and while. Within subroutines, it leaves subroutines introduced by FORM. Its effects in other situations will be fully explored as they arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2007 05:20:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-18T05:20:49Z</dc:date>
    <item>
      <title>Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116188#M442951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one Explain Exit Statement with Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116188#M442951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116189#M442952</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; Exit statement means coming out of a loop when ever certain conditon sastisfies&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 do.
   count = count + 1.  

 if count = '5'.
   EXIT.
 endif.
 enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this to understand better&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/exit_.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/exit_.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116189#M442952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116190#M442953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXIT statement is the control break statement. If you put this statement in the loop then the control will come our of the loop and excute the next statement after the Endloop.&lt;/P&gt;&lt;P&gt;  If this statement in Subroutine then it will come out of the the routine and exxcute the next statement of the perform statement.&lt;/P&gt;&lt;P&gt;  If this statement in if condition then it will comeout of that Event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I think this will understand you clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116190#M442953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116191#M442954</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;Exit can be used to get out of loops like Do, Loop, While and &lt;/P&gt;&lt;P&gt;Select Endselect, for a particular condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116191#M442954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116192#M442955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9af135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9af135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116192#M442955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116193#M442956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;exit&amp;lt;/b&amp;gt; statement prevents further processing from occurring. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax for the exit Statement&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using EXIT to Stop Program Processing Dead in Its Tracks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1  report ztx1006.&lt;/P&gt;&lt;P&gt;2  write: / 'Hi'.&lt;/P&gt;&lt;P&gt;3  exit.&lt;/P&gt;&lt;P&gt;4  write: / 'There'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code produces this output: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit prevents further processing, so the exit on line 3 prevents line 4 from being executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit can be used in many situations. It can have varying effects depending on where it appears in the code. However, it always prevents further processing. Within loop structures, it leaves loop processing introduced by statements such as loop, select, do, and while. Within subroutines, it leaves subroutines introduced by FORM. Its effects in other situations will be fully explored as they arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116193#M442956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116194#M442957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAYA,&lt;/P&gt;&lt;P&gt;If u use the exit statement in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To terminate the loop entirely without any condition. &lt;/P&gt;&lt;P&gt;Syntax:&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 syatem terminate s the entire loop processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewords some points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 05:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-statement/m-p/2116194#M442957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T05:28:49Z</dc:date>
    </item>
  </channel>
</rss>

