Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SYNTAX MEANING

Former Member
0 Likes
732

WHAT DOES THIS MEAN ' MODULE %_BACK AT EXIT-COMMAND' IN A DIALOG PROGRAM?

THANKS

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

Hi,

AT EXIT-COMMAND is used the leave the screen even if the some of the mandatory checks are met..

Let's take an example..

You have to mandatory field MATERIAL in the screen..and there is no value in that field..

You want to leave the screen by passing the mandatory check...

Then you will have a module AT EXIT-COMMAND in the PAI event...

There you can check function code...and then leave the program...

Note: the function code that you set in SE41 (GUI status) has to be of type E (exit-command)...for the function code to trigger the AT EXIT-COMMAND module..

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
691

Hello ,

It means that it's aMOdule name in the MPP Program.

It checks whether an exit command of type 'E' is assigned to a field or not and if yes then it leaves or lese the value needs to be entered for that field.

Regards,

Deepu.K

Read only

0 Likes
691

Hi ,

The Module name begins with %_, the module name infact is %_BACK when I click on the module name to check the code in the module , it says object does not exist by name %_BACK and do you want to create new one.

Normally module names don't begin with %_ , in this case it is .

Could you explain more on this?

Regards

Nag

Read only

Former Member
0 Likes
692

Hi,

AT EXIT-COMMAND is used the leave the screen even if the some of the mandatory checks are met..

Let's take an example..

You have to mandatory field MATERIAL in the screen..and there is no value in that field..

You want to leave the screen by passing the mandatory check...

Then you will have a module AT EXIT-COMMAND in the PAI event...

There you can check function code...and then leave the program...

Note: the function code that you set in SE41 (GUI status) has to be of type E (exit-command)...for the function code to trigger the AT EXIT-COMMAND module..

Thanks,

Naren

Read only

Former Member
0 Likes
691

HI,

Welcome to SDN!!!!!!

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

When the user chooses a function with type E, the screen flow logic jumps directly to the following statement:

MODULE <mod> AT EXIT-COMMAND.

Regardless of where it occurs in the screen flow logic, this statement is executed immediately, and before the automatic checks for the field contents on the screen. Before the module <mod> is executed, the contents of the OK-CODE field are transported to the ABAP field with the same name. However, no other screen fields are transported to the program at this stage. If you have more than one MODULE statement with the AT EXIT-COMMAND addition, only the first is executed. If there are no MODULE statements with the AT EXIT-COMMAND statement, normal PAI processing resumes.

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

Regards

SAB