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

hi

Former Member
0 Likes
398

i have some mandatory fields (username and Password) and command buttons (login and exit) in Module Pool Programming.

when i click exit button without typing any values to the fields exit command is not working. when i enter some values to the fields it is working

how to make that exit button to work without typing the mandatory fileds..?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
382

Hi,

Hope this will solve your problem.

Automatic field checks can be avoided by AT EXIT-COMMAND, which works exactly the same way as Cancel works on application tools bar. In the R/3 screen, if you want to quit the processing of that particular screen without entering the mandatory fields, user can click the Cancel button. Same functionality can be incorporated in the user-defined transaction by using AT EXIT-COMMAND. This module can be called before the system executes the automatic field checks and it goes without saying that before PAI event. Code for AT EXIT-COMMAND in flow logic and in module pool program can be written as follows:

In Flow Logic

Process After Input.

Module exit AT EXIT-COMMAND.

In module pool program.

Module exit.

Case okcode.

When ‘Exit’.

Leave to screen 0.

To achieve this kind of functionality a pushbutton or menu item should be assigned a function type ‘E’. It tells the system to process this particular module before carrying out any field checks.

Reward points if it is useful.

Regards,

Swetha.

i have some mandatory fields (username and Password) and command buttons (login and exit) in Module Pool Programming.

when i click exit button without typing any values to the fields exit command is not working. when i enter some values to the fields it is working

how to make that exit button to work without typing the mandatory fileds..?

2 REPLIES 2
Read only

Former Member
0 Likes
383

Hi,

Hope this will solve your problem.

Automatic field checks can be avoided by AT EXIT-COMMAND, which works exactly the same way as Cancel works on application tools bar. In the R/3 screen, if you want to quit the processing of that particular screen without entering the mandatory fields, user can click the Cancel button. Same functionality can be incorporated in the user-defined transaction by using AT EXIT-COMMAND. This module can be called before the system executes the automatic field checks and it goes without saying that before PAI event. Code for AT EXIT-COMMAND in flow logic and in module pool program can be written as follows:

In Flow Logic

Process After Input.

Module exit AT EXIT-COMMAND.

In module pool program.

Module exit.

Case okcode.

When ‘Exit’.

Leave to screen 0.

To achieve this kind of functionality a pushbutton or menu item should be assigned a function type ‘E’. It tells the system to process this particular module before carrying out any field checks.

Reward points if it is useful.

Regards,

Swetha.

Read only

Former Member
0 Likes
382

hi,

write the code for exit command within the module(say "m_exit") and in PAI write

module m_exit on exit-command(check syntax).

in the pf-status make the function type as 'E' for that func code.

Regards,

Will.