<?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: Quit Transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385005#M529930</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 in Loops &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;EXIT. &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;Exits the current loop processing in loop structures such as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO ... ENDDO &lt;/P&gt;&lt;P&gt;WHILE ... ENDWHILE &lt;/P&gt;&lt;P&gt;LOOP ... ENDLOOP &lt;/P&gt;&lt;P&gt;SELECT ... ENDSELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Outside loop structures, the system exits the current processing block (event block, dialog module, procedure). During report processing, that is, during the event blocks START-OF-SELECTION, GET, END-OF-SELECTION, the system goes to the basic list display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP recommends that you use EXIT only in loops. To exit processing blocks, use the statement RETURN. &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;DATA: SAP_COUNT TYPE I, &lt;/P&gt;&lt;P&gt;WA_T100 TYPE T100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM T100 INTO WA_T100 WHERE SPRSL = SY-LANGU AND &lt;/P&gt;&lt;P&gt;ARBGB = 'DS'. &lt;/P&gt;&lt;P&gt;WRITE / WA_T100-TEXT. &lt;/P&gt;&lt;P&gt;IF WA_T100-TEXT CS 'SAP'. &lt;/P&gt;&lt;P&gt;ADD 1 TO SAP_COUNT. &lt;/P&gt;&lt;P&gt;IF SAP_COUNT = 3. &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;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If several loops are nested, EXIT only exits the current loop. The processing continues after the corresponding END... statement in the loop at the next higher level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Function&lt;/P&gt;&lt;P&gt;module TH_DELETE_MODE to close the session. If you have only one screen this will kill that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 06:04:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T06:04:22Z</dc:date>
    <item>
      <title>Quit Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385004#M529929</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;What is the syntax or code to quit or exit transaction just like the cancel functionality? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kurrt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 05:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385004#M529929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T05:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Quit Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385005#M529930</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 in Loops &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;EXIT. &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;Exits the current loop processing in loop structures such as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO ... ENDDO &lt;/P&gt;&lt;P&gt;WHILE ... ENDWHILE &lt;/P&gt;&lt;P&gt;LOOP ... ENDLOOP &lt;/P&gt;&lt;P&gt;SELECT ... ENDSELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Outside loop structures, the system exits the current processing block (event block, dialog module, procedure). During report processing, that is, during the event blocks START-OF-SELECTION, GET, END-OF-SELECTION, the system goes to the basic list display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP recommends that you use EXIT only in loops. To exit processing blocks, use the statement RETURN. &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;DATA: SAP_COUNT TYPE I, &lt;/P&gt;&lt;P&gt;WA_T100 TYPE T100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM T100 INTO WA_T100 WHERE SPRSL = SY-LANGU AND &lt;/P&gt;&lt;P&gt;ARBGB = 'DS'. &lt;/P&gt;&lt;P&gt;WRITE / WA_T100-TEXT. &lt;/P&gt;&lt;P&gt;IF WA_T100-TEXT CS 'SAP'. &lt;/P&gt;&lt;P&gt;ADD 1 TO SAP_COUNT. &lt;/P&gt;&lt;P&gt;IF SAP_COUNT = 3. &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;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If several loops are nested, EXIT only exits the current loop. The processing continues after the corresponding END... statement in the loop at the next higher level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Function&lt;/P&gt;&lt;P&gt;module TH_DELETE_MODE to close the session. If you have only one screen this will kill that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 06:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385005#M529930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T06:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Quit Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385006#M529931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not sure what is your requirement exactly... but if you have to leave to another transaction then you can use LEAVE TO TRANSACTION &amp;lt;TCODE&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use LEAVE PROGRAM for leaving from the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 06:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385006#M529931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T06:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quit Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385007#M529932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kurtt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I was not able to get a clear picture of your requirement bit if you are talking about the 'Exit' button on the standard toolbar, then its Function code is 'I' and Functional Type is 'S' (ie System Function). However, I did not get why you need to know this because as far as I know, you need not implement th elogic behind standard toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEcondly if you want to have an exit in your trnasaction, then you can give your own button with your own functio code either on the application toolbar or on the screen. You can also use the 'Leave program' or 'Leave to screen 0' statements according to your functionality or requirement in any of your case statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 06:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quit-transaction/m-p/2385007#M529932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T06:41:00Z</dc:date>
    </item>
  </channel>
</rss>

