<?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: Problem with Exit push button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370567#M1401726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Go to your status of the Screen assign Function Type as E." Double Click on your PF Status for this.
Expand Function Keys and Double Click on EXIT word (Which you Placed Earlier) and Assign E as the Functional Type

in PAI of your program.

At Screen Level maintainOK_CODE in element List and also declare OK_CODE in TOP include.


MODULE exit AT EXIT-COMMAND.

in program.

MODULE exit .
CASE OK_CODE.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Dec 2009 08:41:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-05T08:41:20Z</dc:date>
    <item>
      <title>Problem with Exit push button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370566#M1401725</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;I have a required field in module pool programming. When i press Exit push button message displays "Fill in all required entry fields".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to exit from program without fill any field.&lt;/P&gt;&lt;P&gt;Is it possible. plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2009 08:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370566#M1401725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-05T08:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exit push button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370567#M1401726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Go to your status of the Screen assign Function Type as E." Double Click on your PF Status for this.
Expand Function Keys and Double Click on EXIT word (Which you Placed Earlier) and Assign E as the Functional Type

in PAI of your program.

At Screen Level maintainOK_CODE in element List and also declare OK_CODE in TOP include.


MODULE exit AT EXIT-COMMAND.

in program.

MODULE exit .
CASE OK_CODE.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2009 08:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370567#M1401726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-05T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exit push button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370568#M1401727</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;Yes this is very well possible in SAP GUI. You have to define a Module in PAI processing block with the following notation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE &amp;lt;mod&amp;gt; AT EXIT-COMMAND.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &amp;lt;mod&amp;gt; with you own module. Once you press the EXIT button this will be the module that will get executed without any other evaluation happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this link for details:&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;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2009 14:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370568#M1401727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-05T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exit push button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370569#M1401728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achive the same , press F1 on MODULE &amp;lt;mod&amp;gt; AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also write LEAVE PROGRAM in the logic for function of the button using sy-ucomm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Dec 2009 04:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370569#M1401728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-06T04:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exit push button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370570#M1401729</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 PF-Status, keep the &lt;STRONG&gt;Functional Type&lt;/STRONG&gt; for the EXIT button as &lt;STRONG&gt;E&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And code for the same button in the module:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
  MODULE exit AT EXIT COMMAND.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE exit.
  CASE sy-ucomm.
    WHEN 'EXIT'.
      LEAVE PROGRAM.  "&amp;lt;- to leave the transaction.
  ENDCASE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 05:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370570#M1401729</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-12-07T05:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exit push button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370571#M1401730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 06:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-exit-push-button/m-p/6370571#M1401730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T06:48:23Z</dc:date>
    </item>
  </channel>
</rss>

