2007 May 28 11:44 AM
What is the use of At-Exit-Command ????
can u give me an example....
2007 May 28 11:46 AM
Hi,
see this link with a good example
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm
rgds,
bharat.
Hi,
see this link with a good example
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm
rgds,
bharat.
2007 May 28 11: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
2007 May 28 11:46 AM
Hi,
see this link with a good example
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm
rgds,
bharat.
2007 May 28 11: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
2007 May 28 11:46 AM
Hi
Please check this link for more info.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm
Regards,
Sree
2007 May 28 12:52 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |