Skip to Content
author's profile photo Former Member
Former Member

hi gurus

What is the use of At-Exit-Command ????

can u give me an example....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 10:46 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 10:46 AM

    Hi

    It exits/comes out of that screen forcibly even though there are some mandatory info which has to be given in the screen.

    It forces the cursor to come out of the screen.

    Write it in PAI of the screen flow logic

    PROCESS AFTER INPUT.

    • Forced Exit from the transaction from screen

    MODULE exit AT EXIT-COMMAND.

    &----


    *& Module exit INPUT

    &----


    • Exit from the Transaction

    ----


    MODULE exit INPUT.

    CASE okcode.

    WHEN 'EXIT' OR 'CANCEL'.

    CLEAR okcode.

    LEAVE PROGRAM.

    ENDCASE.

    ENDMODULE. " exit INPUT

    Reward points if useful

    Regards

    Anji

    Message was edited by:

    Anji Reddy Vangala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 10:46 AM

    Hi,

    In the GUI definition, for this function code, set the function type to 'E' (exit command).

    If the user chooses a function whose function code does not have type E, the MODULE <mod> AT EXIT-COMMAND statement is not executed.

    sample code:

    This exit-command module looks like below.

    Module exitscreen input.

    Case v_okcode_100.

    When ‘EXIT’.

    Leave to screen 0.

    when ‘BACK’.

    Leave to screen 0.

    when ‘CANCEL’.

    Leave to screen 0.

    Endcase.

    Endmodule

    Please check this link for more info.

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm

    ***do rewards if usefull

    regards,

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2007 at 10:46 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 11:52 AM

    check the program demo_dynpro_at_exit_command

    used for BAck Exit And Cancel

    Module with at exit cmmaand will always be executed first(because this is actually used for leaving to back screen or from the program itself).

    No other modules are executed unnecessarily.

    <b>Dont forget to award</b>

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.