0% found this document useful (0 votes)
97 views4 pages

Using AT EXIT in ABAP 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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views4 pages

Using AT EXIT in ABAP 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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

| Technical Abap
[Link] 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
[Link] 2/4
([Link]
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.
([Link]
Write the logic in program as below.
([Link]
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..
([Link]
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
[Link] 3/4
([Link]
([Link]
Thankyou
You May Like
1.
Tagged: AT EXIT COMMAND ([Link] Mandatory
fields override ([Link]
Create a free website or blog at [Link]. | The Delicacy Theme.
Follow
Follow Technical Abap
About these ads ([Link]
these-ads/)
6/23/2014 AT EXIT COMMAND in Module Pool.. | Technical Abap
[Link] 4/4
Powered by [Link]

You might also like