0% found this document useful (0 votes)
292 views

At Exit Command in Module Pool.

The document discusses using the AT EXIT COMMAND in an ABAP module pool program. It describes a scenario where a screen has five mandatory input fields and the user needs to exit the program without filling them in. Normally this would cause an error, but the AT EXIT COMMAND allows leaving the program. It provides steps to create a screen with an "Exit" function and module that uses AT EXIT COMMAND to bypass the mandatory field check and return to the calling program when the exit function is triggered.

Uploaded by

abdul.shaik
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
292 views

At Exit Command in Module Pool.

The document discusses using the AT EXIT COMMAND in an ABAP module pool program. It describes a scenario where a screen has five mandatory input fields and the user needs to exit the program without filling them in. Normally this would cause an error, but the AT EXIT COMMAND allows leaving the program. It provides steps to create a screen with an "Exit" function and module that uses AT EXIT COMMAND to bypass the mandatory field check and return to the calling program when the exit function is triggered.

Uploaded by

abdul.shaik
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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