<?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 command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359513#M521778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user chooses a function with type E, the screen flow logic jumps directly to the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod&amp;gt; AT EXIT-COMMAND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of where it occurs in the screen flow logic, this statement is executed immediately, and before the automatic checks for the field contents on the screen. Before the module &amp;lt;mod&amp;gt; is executed, the contents of the OK-CODE field are transported to the ABAP field with the same name. However, no other screen fields are transported to the program at this stage. If you have more than one MODULE statement with the AT EXIT-COMMAND addition, only the first is executed. If there are no MODULE statements with the AT EXIT-COMMAND statement, normal PAI processing resumes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses a function whose function code does not have type E, the MODULE &amp;lt;mod&amp;gt; AT EXIT-COMMAND statement is not executed. &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 10:01:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-14T10:01:24Z</dc:date>
    <item>
      <title>Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359509#M521774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the significance of at exit command where we will use it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359509#M521774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359510#M521775</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 command is used to terminate the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the EXIT statement is listed within a loop, it leaves the loop by ending the current loop process. Program execution is continued after the closing statement in the loop. Outside of a loop, the EXIT statement leaves the current processing block (see EXIT - Processing block). We recommend that you use EXIT within loops only.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;PROGRAM FORM_TEST.&lt;/P&gt;&lt;P&gt;PERFORM TERMINATE.&lt;/P&gt;&lt;P&gt;WRITE 'The End'.&lt;/P&gt;&lt;P&gt;FORM TERMINATE.&lt;/P&gt;&lt;P&gt;WRITE '1'.&lt;/P&gt;&lt;P&gt;WRITE '2'.&lt;/P&gt;&lt;P&gt;WRITE '3'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;WRITE '4'.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;The produces the following output:&lt;/P&gt;&lt;P&gt;1 2 3 The End&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;Priyanka.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Priyanka Neelam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359510#M521775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359511#M521776</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 exit command is mostly used in subroutines.If in a subroutine you have a condition such that if it is not satisfied then you must come out of the subroutine,then you have to use the EXIT command.&lt;/P&gt;&lt;P&gt;If the exit command is used,it will stop the execution of the subroutine and come out of it.If you have some more subroutines then their execution will take place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359511#M521776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359512#M521777</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;suppose if u want to exit from a loop when a perticular condition is reached u have to use exit command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 5 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 of this is :1 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please assign points &amp;amp; close all the threads if u got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359512#M521777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359513#M521778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user chooses a function with type E, the screen flow logic jumps directly to the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod&amp;gt; AT EXIT-COMMAND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of where it occurs in the screen flow logic, this statement is executed immediately, and before the automatic checks for the field contents on the screen. Before the module &amp;lt;mod&amp;gt; is executed, the contents of the OK-CODE field are transported to the ABAP field with the same name. However, no other screen fields are transported to the program at this stage. If you have more than one MODULE statement with the AT EXIT-COMMAND addition, only the first is executed. If there are no MODULE statements with the AT EXIT-COMMAND statement, normal PAI processing resumes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses a function whose function code does not have type E, the MODULE &amp;lt;mod&amp;gt; AT EXIT-COMMAND statement is not executed. &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359513#M521778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T10:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359514#M521779</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;thanks  to all for solving my query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 08:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-command/m-p/2359514#M521779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T08:49:02Z</dc:date>
    </item>
  </channel>
</rss>

