<?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: stop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132331#M448329</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;&lt;/P&gt;&lt;P&gt; Cancels all data selection. No further tables are read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/stop.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/stop.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this is from help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;STOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The statement STOP is only to be used in executable programs and in the following event blocks: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You leave these event blocks via STOP, and the runtime environment triggers the event END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The statement STOP is forbidden in methods and, since Release 6.10, leads to an uncatchable exception during the processing of screens called with CALL SCREEN and in programs not called with SUBMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Ending the event blocks GET sbook after max postings have been issued, and branching to END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: sflight, sbook. &lt;/P&gt;&lt;P&gt;DATA: bookings TYPE i, &lt;/P&gt;&lt;P&gt;      max TYPE i VALUE 100. &lt;/P&gt;&lt;P&gt;GET sflight. &lt;/P&gt;&lt;P&gt;  WRITE: / sflight-carrid, sflight-connid, sflight-fldate. &lt;/P&gt;&lt;P&gt;GET sbook. &lt;/P&gt;&lt;P&gt;  bookings = bookings + 1. &lt;/P&gt;&lt;P&gt;  WRITE: / sbook-bookid, sbook-customid. &lt;/P&gt;&lt;P&gt;  IF bookings = max. &lt;/P&gt;&lt;P&gt;    STOP. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;  WRITE: / 'First', bookings, 'bookings'. &lt;/P&gt;&lt;P&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 09:22:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-10T09:22:02Z</dc:date>
    <item>
      <title>stop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132328#M448326</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;&lt;/P&gt;&lt;P&gt;  open dataset w_fname for input in text mode   " get input data&lt;/P&gt;&lt;P&gt;                              message lw_msg.   " any errors place here&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message i002 with lw_msg.&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code why the stop statement is required what does it mean there.Even if we don't give also after giving the message it will come out of the if endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132328#M448326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T09:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: stop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132329#M448327</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;If you use the STOP statement within an event block, the system &amp;lt;b&amp;gt;stops processing the block immediately&amp;lt;/b&amp;gt;. The ABAP runtime environment triggers the next event.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;So in your code it exits of the block in which the code is and moves to the next block.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;From the AT SELECTION-SCREEN event onwards, the system always jumps from a STOP statement directly to the END-OF-SELECTION statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132329#M448327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T09:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: stop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132330#M448328</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;  The statement STOP is only to be used in executable programs and in the following event blocks: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You leave these event blocks via STOP, and the runtime environment triggers the event END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132330#M448328</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-04-10T09:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: stop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132331#M448329</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;&lt;/P&gt;&lt;P&gt; Cancels all data selection. No further tables are read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/stop.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/stop.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this is from help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;STOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The statement STOP is only to be used in executable programs and in the following event blocks: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN (without additions) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You leave these event blocks via STOP, and the runtime environment triggers the event END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The statement STOP is forbidden in methods and, since Release 6.10, leads to an uncatchable exception during the processing of screens called with CALL SCREEN and in programs not called with SUBMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Ending the event blocks GET sbook after max postings have been issued, and branching to END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: sflight, sbook. &lt;/P&gt;&lt;P&gt;DATA: bookings TYPE i, &lt;/P&gt;&lt;P&gt;      max TYPE i VALUE 100. &lt;/P&gt;&lt;P&gt;GET sflight. &lt;/P&gt;&lt;P&gt;  WRITE: / sflight-carrid, sflight-connid, sflight-fldate. &lt;/P&gt;&lt;P&gt;GET sbook. &lt;/P&gt;&lt;P&gt;  bookings = bookings + 1. &lt;/P&gt;&lt;P&gt;  WRITE: / sbook-bookid, sbook-customid. &lt;/P&gt;&lt;P&gt;  IF bookings = max. &lt;/P&gt;&lt;P&gt;    STOP. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;  WRITE: / 'First', bookings, 'bookings'. &lt;/P&gt;&lt;P&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132331#M448329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: stop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132332#M448330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not onli comes out of the IF.. it comes out of the loop if any loops u have.. or it goes to END -OF-SELECTION event directly if u dont have any loop ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop/m-p/2132332#M448330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T09:30:48Z</dc:date>
    </item>
  </channel>
</rss>

