<?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: At new, EXIT,STOP and CONTINUE, Select-options Initialization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118544#M108222</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;1) Use INITIALIZATION event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_A(3) = 'IBT'.&lt;/P&gt;&lt;P&gt;SO_A-LOW  = 1.&lt;/P&gt;&lt;P&gt;SO_A-HIGH = 10.&lt;/P&gt;&lt;P&gt;APPEND SO_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_A-LOW  = 20.&lt;/P&gt;&lt;P&gt;SO_A-HIGH = 30.&lt;/P&gt;&lt;P&gt;APPEND SO_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_A(3) = 'IBT'.&lt;/P&gt;&lt;P&gt;SO_A-LOW  = 1.&lt;/P&gt;&lt;P&gt;SO_A-HIGH = 10.&lt;/P&gt;&lt;P&gt;APPEND SO_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_B-LOW  = 20.&lt;/P&gt;&lt;P&gt;SO_B-HIGH = 30.&lt;/P&gt;&lt;P&gt;APPEND SO_B.&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The event AT NEW &amp;lt;FIELD&amp;gt; (or AT END) is triggered when the value of field &amp;lt;FIELD&amp;gt; or the value of a field at the left of &amp;lt;FIELD&amp;gt; is changing. So AT NEW B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A B&lt;/P&gt;&lt;P&gt;0 1 -&amp;gt; Here it's triggered&lt;/P&gt;&lt;P&gt;1 0 -&amp;gt; Here it's triggered&lt;/P&gt;&lt;P&gt;1 1 -&amp;gt; Here it's triggered&lt;/P&gt;&lt;P&gt;0 1 -&amp;gt; Here it's triggered (The value of A is changed)&lt;/P&gt;&lt;P&gt;1 1 -&amp;gt; Here it's triggered (The value of A is changed)&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;0 1 -&amp;gt; Here it's triggered (The value of A is changed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;/P&gt;&lt;P&gt;- CONTINUE: it is used in LOOP/ENDLOOP cycle and skip to next record;&lt;/P&gt;&lt;P&gt;- EXIT: it is used to exit from a cycle (DO/ENDDO, LOOP/ENDLOOP...) and routine (FORM)&lt;/P&gt;&lt;P&gt;- STOP: it is used to exit from event as START-OF-SELECTION, AT SELECTION-SCREEN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2006 08:18:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-13T08:18:46Z</dc:date>
    <item>
      <title>At new, EXIT,STOP and CONTINUE, Select-options Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118542#M108220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am having the following requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have design the selection screen by using Select-options statement. In that i have to initialize both low and high values. I don't know how to write and where to write the code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) and another requirement as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field A  contain values ( 0, 1, 1, 0, 1, 1, 1, 0)&lt;/P&gt;&lt;P&gt;Field B  contain values (1, 0, 1, 1, 1, 1, 1, 1)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;At new b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case how many times At new statement calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) How is EXIT differ to STOP and CONTINUE. Please give me the brief idea on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i will get the accurate results for the above soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 08:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118542#M108220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-13T08:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: At new, EXIT,STOP and CONTINUE, Select-options Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118543#M108221</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;1) YOU HAVE WRITRE IT IN THE INITIALIZATION EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITILIAZATION.&lt;/P&gt;&lt;P&gt;S_OPT-HIGH = &amp;lt;VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;S_OPT-LOW = &amp;lt;VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) AT NEW STATEMENT WILL TRIGGER WHENEVER THERE IS A CHANGE IN THAT FIELD AND THE FIELD BEFORE THAT FIELD. SO IN YOUR SCENARIO IT WILL TRIGGER 6 TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)IN THE LOOP&lt;/P&gt;&lt;P&gt;WEHN YOU SAY CONTINUE IT WILL GO FOR THE NEXT ITERATION.&lt;/P&gt;&lt;P&gt;WHEN YOU SAY STOP IT WILL STOP THE ITERATION AND GO TO THE END STATEMENT.&lt;/P&gt;&lt;P&gt;WHEN YOU SAY EXIT IT EXITS THE LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HI prabharakar&lt;/P&gt;&lt;P&gt;plz close the thread if your request is answered.&amp;lt;/b&amp;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;KISHORE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Harikishore Sreenivasulu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 08:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118543#M108221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-13T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: At new, EXIT,STOP and CONTINUE, Select-options Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118544#M108222</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;1) Use INITIALIZATION event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_A(3) = 'IBT'.&lt;/P&gt;&lt;P&gt;SO_A-LOW  = 1.&lt;/P&gt;&lt;P&gt;SO_A-HIGH = 10.&lt;/P&gt;&lt;P&gt;APPEND SO_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_A-LOW  = 20.&lt;/P&gt;&lt;P&gt;SO_A-HIGH = 30.&lt;/P&gt;&lt;P&gt;APPEND SO_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_A(3) = 'IBT'.&lt;/P&gt;&lt;P&gt;SO_A-LOW  = 1.&lt;/P&gt;&lt;P&gt;SO_A-HIGH = 10.&lt;/P&gt;&lt;P&gt;APPEND SO_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_B-LOW  = 20.&lt;/P&gt;&lt;P&gt;SO_B-HIGH = 30.&lt;/P&gt;&lt;P&gt;APPEND SO_B.&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The event AT NEW &amp;lt;FIELD&amp;gt; (or AT END) is triggered when the value of field &amp;lt;FIELD&amp;gt; or the value of a field at the left of &amp;lt;FIELD&amp;gt; is changing. So AT NEW B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A B&lt;/P&gt;&lt;P&gt;0 1 -&amp;gt; Here it's triggered&lt;/P&gt;&lt;P&gt;1 0 -&amp;gt; Here it's triggered&lt;/P&gt;&lt;P&gt;1 1 -&amp;gt; Here it's triggered&lt;/P&gt;&lt;P&gt;0 1 -&amp;gt; Here it's triggered (The value of A is changed)&lt;/P&gt;&lt;P&gt;1 1 -&amp;gt; Here it's triggered (The value of A is changed)&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;0 1 -&amp;gt; Here it's triggered (The value of A is changed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;/P&gt;&lt;P&gt;- CONTINUE: it is used in LOOP/ENDLOOP cycle and skip to next record;&lt;/P&gt;&lt;P&gt;- EXIT: it is used to exit from a cycle (DO/ENDDO, LOOP/ENDLOOP...) and routine (FORM)&lt;/P&gt;&lt;P&gt;- STOP: it is used to exit from event as START-OF-SELECTION, AT SELECTION-SCREEN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 08:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118544#M108222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-13T08:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: At new, EXIT,STOP and CONTINUE, Select-options Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118545#M108223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For 1, use the initialization event and u can initialize like this&lt;/P&gt;&lt;P&gt; s_matnr- low = '001'.&lt;/P&gt;&lt;P&gt; S_matnr-high = '100'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append s_matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2, general rule for control breaks is u have ur internal table columns sorted out. if is so, then ur at new b will triger for every new combi of a and b together, as A is ur first column in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 3, &lt;/P&gt;&lt;P&gt; Exit, get out of a current struct, whetehr it is if-endif or do-endo, continue, will just move to next loop pass skipping everything following its occuerence till the endloop statement. STOP takes you out of the program totally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 08:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118545#M108223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-13T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: At new, EXIT,STOP and CONTINUE, Select-options Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118546#M108224</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;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options could be initialised with the command INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : MARA.

select-options : s_matnr for mara-matnr.

Intialization.
  move : '123456789' to s_matnr-low ,
         'I'         to s_matnr-sign ,
         'EQ'        to s_matnr-option.
  append s_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I means  Include, the other possible value is E for exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EQ means EQual, could be BT BeTween ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure of a select-options is : Sign, Option, Low and High. (Low and High is the two values you see in screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commande Initialization could be place anywhere outside the start-of-selection ... end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;3 times ..  but, depends where are the fields .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;/P&gt;&lt;P&gt;The command EXIT leave the current command. Command could be a PERFORM, a DO, a LOOP, a SELECT, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command STOP go to the end-of-selection. If you put some code after the end-of-selection, the code will be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 08:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118546#M108224</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-02-13T08:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: At new, EXIT,STOP and CONTINUE, Select-options Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118547#M108225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) this is a sample of how to initialize your fields.&lt;/P&gt;&lt;P&gt;select-options: la for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;  la-low = 'A00'.&lt;/P&gt;&lt;P&gt;  la-high = 'A01'.&lt;/P&gt;&lt;P&gt;  append la.&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;&lt;/P&gt;&lt;P&gt;2) I assume that the values you are giving in fields A and B are the conternts of an internal table.&lt;/P&gt;&lt;P&gt;so the answer to your question about how many times the "at new b" statement is going to be called  is : 6 because this is the number of changes of the pair of data in a and b fields is.&lt;/P&gt;&lt;P&gt;(0,1), (1,0), (1,1), (0,1), (1,1),(0,1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) EXIT exits the loop or the select and goes to the next statement&lt;/P&gt;&lt;P&gt;STOP stops whatever its doing and goes to end of selection&lt;/P&gt;&lt;P&gt;CONTINUE exits the specific processing step and continues to the next step loop.&lt;/P&gt;&lt;P&gt;so if you have the next code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from mara where matnr in la.&lt;/P&gt;&lt;P&gt;    if mara-matnr = 'A00'.&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;    write : / mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from marc where matnr in la.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;end of selection.&lt;/P&gt;&lt;P&gt; write : / 'END'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stop will go to write : / 'END'.&lt;/P&gt;&lt;P&gt;EXIT will go to select * from marc &lt;/P&gt;&lt;P&gt;continue will stay in the same "select * from mara " and go to the next step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;roxani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 08:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-exit-stop-and-continue-select-options-initialization/m-p/1118547#M108225</guid>
      <dc:creator>former_member537489</dc:creator>
      <dc:date>2006-02-13T08:47:19Z</dc:date>
    </item>
  </channel>
</rss>

