<?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  not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187800#M1200670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At Exit-command  must be the first statement in the flow logic under PAI. Have tou written it as the first statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 09:51:12 GMT</pubDate>
    <dc:creator>sarbajitm</dc:creator>
    <dc:date>2009-02-25T09:51:12Z</dc:date>
    <item>
      <title>At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187799#M1200669</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;I am working on At Exit command and in my screen i have field validation and i have coded AT EXIT COMMAND in my PAI to execute when we exiting BACK/CANCEL/EXIT. I have taken Function type as "E' in GUI. but too i am not able to exit without field validation and when i debug the control is not coming to At exit Module. plz help me on this..&lt;/P&gt;&lt;P&gt;waiting for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 09:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187799#M1200669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187800#M1200670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At Exit-command  must be the first statement in the flow logic under PAI. Have tou written it as the first statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 09:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187800#M1200670</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-02-25T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187801#M1200671</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;Check the demo program DEMO_DYNPRO_AT_EXIT_COMMAND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 09:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187801#M1200671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187802#M1200672</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;let me clarify from you..have u coded like this...&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;loop at &amp;lt;int table&amp;gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE &amp;lt; module name&amp;gt; AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in between module and endmodule....&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;&lt;/P&gt;&lt;P&gt;ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside the loop plz use the user command module.&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;Plz let me know if ur coding is like this and still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187802#M1200672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T10:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187803#M1200673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Write 'At Exit-Command' as the first statement in PAI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187803#M1200673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T10:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187804#M1200674</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;I am using the following way and it is working fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
  MODULE user_exit_command AT EXIT-COMMAND.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  user_exit_command  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module user_exit_command input.

  data: ok_code_0002 type sy-ucomm.
  case ok_code_0002.
    when 'BACK'.
      clear ok_code_0002.
      leave to screen 0.
    when 'EXIT'.
      clear ok_code_0002.
      leave program.
    when 'CANCEL'.
      clear ok_code_0002.
*      leave to transaction 'ZFSLSCB'.
  endcase.
endmodule.                 " user_exit_command  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will help you to solve your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 11:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187804#M1200674</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-25T11:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187805#M1200675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try following code.&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 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  v_lifnr.&lt;/P&gt;&lt;P&gt;    FIELD wv_ebeln.&lt;/P&gt;&lt;P&gt;    MODULE check_ebeln  ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;  FIELD v_lifnr  MODULE check_lifnr  ON REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD wv_lfsnr.&lt;/P&gt;&lt;P&gt;    MODULE validate_delivery_no ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD wv_lfsnr MODULE f4_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  LEAVE_DYNPRO  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE leave_dynpro INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM leave_dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " LEAVE_DYNPRO  INPUT&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;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 11:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187805#M1200675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T11:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187806#M1200676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use EXIT statement inside your module. Hope this will soove your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 11:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187806#M1200676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T11:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: At Exit-command  not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187807#M1200677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thank you all of you for replying to me..&lt;/P&gt;&lt;P&gt;i have rewarded to all of you.&lt;/P&gt;&lt;P&gt;the problem is resolved.&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 12:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-exit-command-not-working/m-p/5187807#M1200677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T12:22:37Z</dc:date>
    </item>
  </channel>
</rss>

