You are on page 1of 4

6/23/2014 AT EXIT COMMAND in Module Pool..

| Technical Abap
http://saptechstuff.wordpress.com/2014/02/27/at-exit-command-in-module-pool/ 1/4
Technical Abap
Post the Query & get the answer!!!
AT EXIT COMMAND in Module Pool..
Basic ABAP February 27, 2014 Leave a comment






i
Rate This
Usage Of AT EXIT COMMAND in module pool.
Purpose:
At exit Command is mainly used to quit the program.
Scenario:
Let me explain with the scenario I have five input fields in my screen ,all the five fields are
mandatory i have to go back to the program (LEAVE PROGRAM).
Normally if there is any one mandatory fields in screen if am triggering any event that time the system
automatically throws an error like Please fill in the mandatory fields. that case the AT EXIT
COMMAND will be used.
step 1 : create module pool program name say ZXXX.
Create a screen number 2001 like below.
6/23/2014 AT EXIT COMMAND in Module Pool.. | Technical Abap
http://saptechstuff.wordpress.com/2014/02/27/at-exit-command-in-module-pool/ 2/4
(http://saptechstuff.files.wordpress.com/2014/02/12.jpg)
Give the function code as Exit and function type as E.
Activate the screen and create the module under PAI using an addition AT EXIT COMMAND like
below.
(http://saptechstuff.files.wordpress.com/2014/02/123.jpg)
Write the logic in program as below.
(http://saptechstuff.files.wordpress.com/2014/02/1234.jpg)
If you wanted to do the same thing with the standard function code like EXIT or CANCEL in the
standard toolbar in the screen means we can do it like below pic..
(http://saptechstuff.files.wordpress.com/2014/02/12345.jpg)
Double click on the particular function code eg: EXIT and specify the function type E as fallows.
OUTPUT:
If any one of the action CANCEL EXIT in toolbar or CANCEL button in Screen triggers it will go
back to the program.
6/23/2014 AT EXIT COMMAND in Module Pool.. | Technical Abap
http://saptechstuff.wordpress.com/2014/02/27/at-exit-command-in-module-pool/ 3/4
(http://saptechstuff.files.wordpress.com/2014/02/1234567.jpg)
(http://saptechstuff.files.wordpress.com/2014/02/12389.jpg)
Thankyou
You May Like
1.
Tagged: AT EXIT COMMAND (http://saptechstuff.wordpress.com/tag/at-exit-command/), Mandatory
fields override (http://saptechstuff.wordpress.com/tag/mandatory-fields-override/)
Create a free website or blog at WordPress.com. | The Delicacy Theme.
Follow
Follow Technical Abap
About these ads (http://en.wordpress.com/about-
these-ads/)
6/23/2014 AT EXIT COMMAND in Module Pool.. | Technical Abap
http://saptechstuff.wordpress.com/2014/02/27/at-exit-command-in-module-pool/ 4/4
Powered by WordPress.com

You might also like