<?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 KEYWORD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824993#M660937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you be a bit clearer about the context of the code you are trying to write? - you mention that you want to replace "stop" in OO but the example you gave was a form not a method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main use I found for a "stop" within a report was to instantly pass control to the "end-of-selection" event e.g. if no data found after doing the a database selection.  If this is the context of the code you are asking about, then you will probably need to recode this to set and pass a flag, e.g. "g_stop  type sap_boolean" set to "X", and test this variable before executing each subsequent chunk of logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 06:41:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T06:41:29Z</dc:date>
    <item>
      <title>STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824984#M660928</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;what is the replacement keyword for STOP in OO Context&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its giving mesg as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The STOP statement is not supported in the OO context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824984#M660928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824985#M660929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can depend on your requirement... what do you want to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824985#M660929</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T06:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824986#M660930</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 SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE S206 WITH PR_UNIX3.&lt;/P&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824986#M660930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824987#M660931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace with EXIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824987#M660931</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T06:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824988#M660932</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 I REPLACE EXIT KEYWORD IT'S GOING OUT OF FORM ROUTINE &lt;/P&gt;&lt;P&gt;THIS IF CONDITION IS IN FORM ROUTINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM OPEN_DATA_SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT PR_UNIX1 IS INITIAL AND NOT PR_PC1 IS INITIAL.&lt;/P&gt;&lt;P&gt;    OPEN DATASET PR_UNIX1 FOR INPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE S206 WITH PR_UNIX1.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824988#M660932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824989#M660933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;than you should place an ELSE somewhere...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM OPEN_DATA_SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT PR_UNIX1 IS INITIAL AND NOT PR_PC1 IS INITIAL.&lt;/P&gt;&lt;P&gt;OPEN DATASET PR_UNIX1 FOR INPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE S206 WITH PR_UNIX1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this will run if sy-subrc is 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824989#M660933</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T06:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824990#M660934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KIran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use CONTINUE statement.&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;A loop pass is exited using CONTINUE if the loop index sy-index is an odd number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA remainder TYPE i. &lt;/P&gt;&lt;P&gt;DO 20 TIMES. &lt;/P&gt;&lt;P&gt;  remainder = sy-index MOD 2. &lt;/P&gt;&lt;P&gt;  IF remainder &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;    CONTINUE. &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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pritha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824990#M660934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824991#M660935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0 .&lt;/P&gt;&lt;P&gt;I WANT TO TERMINATE THE PROGRAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW? WITHOUT USING STOP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824991#M660935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824992#M660936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE PROGRAM.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824992#M660936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824993#M660937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you be a bit clearer about the context of the code you are trying to write? - you mention that you want to replace "stop" in OO but the example you gave was a form not a method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main use I found for a "stop" within a report was to instantly pass control to the "end-of-selection" event e.g. if no data found after doing the a database selection.  If this is the context of the code you are asking about, then you will probably need to recode this to set and pass a flag, e.g. "g_stop  type sap_boolean" set to "X", and test this variable before executing each subsequent chunk of logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824993#M660937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824994#M660938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use exit, but u cant trigger end of selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824994#M660938</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-01T06:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: STOP KEYWORD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824995#M660939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An interesting OO context if you're in a form...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 13:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-keyword/m-p/2824995#M660939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T13:36:07Z</dc:date>
    </item>
  </channel>
</rss>

