<?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: Custom screen window not getting closed ! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522349#M1655897</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;Please check the ok-code in debugging mode and see if your code is getting triggered. Please make sure you written your code in PAI event with module  MODULE cancel_0212 AT EXIT-COMMAND. for an exmaple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE cancel_0212 AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module  MODULE cancel_0212  you write your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 10:48:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-10T10:48:52Z</dc:date>
    <item>
      <title>Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522342#M1655890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have designed a screen and calling that using call screen XXXX starting at 15 5. Sreen does load up. Upon clicking close button(X mark) on the top right side, window is not getting closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two more buttons OK and CANCEL in screen, which I designed, on clicking them screen does behave properly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched in SDN but couldnt get much help.&lt;/P&gt;&lt;P&gt;Any idea what am missing ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Himayat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 07:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522342#M1655890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522343#M1655891</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;type your code a bit where you are getting problem. i.e. your user command code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Aswath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 07:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522343#M1655891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T07:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522344#M1655892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;You have to maintain the exit/cancel or back toolbar button in Standard Function key for your screen PF status. Then this will work. If you want your manually created button will work then you have to maintain those buttons in application tool bar in PF status. &lt;/P&gt;&lt;P&gt;So in your screen XXX, create the module_status_XXX and create an PF status.&lt;/P&gt;&lt;P&gt;And in User command, you have to write code to exit for the buttons u have maintianed for standard function key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 07:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522344#M1655892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522345#M1655893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should put your logic in User command of that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module user_command_0300 input.

  case ok_code.
    
  when 'OK'.

  * give your logic

    when 'CANC'.

  leave to screen 0.

  endcase.

  clear: ok_code.

endmodule.                    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 07:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522345#M1655893</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2012-02-10T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522346#M1655894</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;ensure that you code in PAI event have the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'CANCEL'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'ACTION'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;CODE TO TAKE ACTION STEPS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 07:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522346#M1655894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522347#M1655895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have this code in place,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR v_ok_code.
  v_ok_code = sy-ucomm.
  CASE v_ok_code.
    WHEN 'CNCL'.
      REFRESH it_input.
      LEAVE TO SCREEN 0.
      WHEN 'TSAVE'.
      PERFORM update_table.
    WHEN OTHERS.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is that generally for closing(X mark button on top), we dont do any explicit coding. I see some strange behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522347#M1655895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T10:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522348#M1655896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a normal screen which am displaying as &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call screen starting 15 5&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. In this screen I have some fields and below them ok and cancel buttons for which PAI is triggered properly and necessary coding done. The screen window's close button which exists on the top extreme right (X mark button) when clicked PAI is not getting triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have PF status for this screen as there is no necessity of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Himayat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522348#M1655896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T10:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522349#M1655897</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;Please check the ok-code in debugging mode and see if your code is getting triggered. Please make sure you written your code in PAI event with module  MODULE cancel_0212 AT EXIT-COMMAND. for an exmaple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE cancel_0212 AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module  MODULE cancel_0212  you write your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522349#M1655897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T10:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522350#M1655898</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;Thanks for your reply. I could resolve this issue. I created PF status for which window and included cancel option for one of the buttons. After this I could raise PAI in which I could handle the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Himayat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522350#M1655898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T10:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522351#M1655899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Himayat, &lt;/P&gt;&lt;P&gt;Can you close this thread if you issue is resolved.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 11:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522351#M1655899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom screen window not getting closed !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522352#M1655900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved and mentioned above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 12:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-screen-window-not-getting-closed/m-p/8522352#M1655900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T12:48:07Z</dc:date>
    </item>
  </channel>
</rss>

