<?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 exit-command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967424#M397223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sucheta,&lt;/P&gt;&lt;P&gt;Change your leave_dynpro as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE leave_dynpro INPUT.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;WHEN 'BACK' .&lt;/P&gt;&lt;P&gt;   set screen 0. &lt;/P&gt;&lt;P&gt;   Leave screen.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;   set screen 0. &lt;/P&gt;&lt;P&gt;   Leave screen.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2007 13:52:58 GMT</pubDate>
    <dc:creator>messier31</dc:creator>
    <dc:date>2007-03-02T13:52:58Z</dc:date>
    <item>
      <title>at exit-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967420#M397219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing the following code in pai of a screen&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;module leave_dynpro at exit-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;field :zmkt-field3, zmkt-field1 , zmkt-field2,zemp-id,zemp-name.&lt;/P&gt;&lt;P&gt;module check on chain-input.&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In side module leave_dynpro I have written the following code.&lt;/P&gt;&lt;P&gt;MODULE leave_dynpro INPUT.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;WHEN 'BACK' .&lt;/P&gt;&lt;P&gt;LEAVE to screen 0.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;message i398(00) with 'aaa'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.  &lt;/P&gt;&lt;P&gt;But when I am pressing exit button it is not leaving the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what to do. I have changed the function type of exit to 'E'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 13:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967420#M397219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T13:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: at exit-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967421#M397220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Makke this change

PROCESS AFTER INPUT.
module leave_dynpro at exit-command.

chain.
field :zmkt-field3, zmkt-field1 , zmkt-field2,zemp-id,zemp-name.
module check on chain-input.
endchain.

MODULE USER_COMMAND_9000.

In side module leave_dynpro I have written the following code.
MODULE leave_dynpro INPUT.
*CASE ok_code.
*WHEN 'BACK' .
*LEAVE to screen 0.
*LEAVE PROGRAM.
*WHEN 'EXIT'.
*LEAVE PROGRAM.
*message i398(00) with 'aaa'.
*ENDCASE.

" Add this line alone
LEAVE SCREEN.
" Add this line alone

ENDMODULE. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 13:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967421#M397220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: at exit-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967422#M397221</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;In the GUI definition, for this function code, set the function type to 'E' (exit command).&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;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;P&gt;This exit-command module looks like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module exitscreen input.&lt;/P&gt;&lt;P&gt;Case v_okcode_100.&lt;/P&gt;&lt;P&gt;When &amp;#145;EXIT&amp;#146;.&lt;/P&gt;&lt;P&gt;Leave to screen 0.&lt;/P&gt;&lt;P&gt;when &amp;#145;BACK&amp;#146;.&lt;/P&gt;&lt;P&gt;Leave to screen 0.&lt;/P&gt;&lt;P&gt;when &amp;#145;CANCEL&amp;#146;.&lt;/P&gt;&lt;P&gt;Leave to screen 0.&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;Endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link for more info.&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;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 13:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967422#M397221</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-03-02T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: at exit-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967423#M397222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put a break point and check out if you are getting the correct OK_CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also enable the EXIT button in PF-STATUS if not done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 13:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967423#M397222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: at exit-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967424#M397223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sucheta,&lt;/P&gt;&lt;P&gt;Change your leave_dynpro as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE leave_dynpro INPUT.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;WHEN 'BACK' .&lt;/P&gt;&lt;P&gt;   set screen 0. &lt;/P&gt;&lt;P&gt;   Leave screen.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;   set screen 0. &lt;/P&gt;&lt;P&gt;   Leave screen.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 13:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967424#M397223</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2007-03-02T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: at exit-command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967425#M397224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also chk this  program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEMO_DYNPRO_AT_EXIT_COMMAND&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 13:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command/m-p/1967425#M397224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T13:56:57Z</dc:date>
    </item>
  </channel>
</rss>

