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

Module pool

Former Member
0 Likes
613

Hi,

There are 2 fields in a module pool screen and in the special attributes of these 2 fields in SE51 transaction, The INPUT is set to Required (Mandatory fields).

When executing this module pool program, the user has to fill values in these 2 fields.

The requirement is now the user doesn't want to enter the values in these 2 fields and wants to come out of the transcation. So he clicks on the CANCEL button. But as these 2 fields are mandatory, it gives a message saying to fill all the fields.

IS there any way where this SAP message can be avoided without changing the original attributes of these 2 fields?

Thanks,

Kumar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
584

Hi,

In order to achieve that,

1. Initially make the Cancel button in se41(menu painter) ,set the Function type to ' E '(Exit Command).This is very impt.

2. In PBO ,

write Module <modulename> at Exitcommand. Inside module u can write ur logic.

Rgds.,

subash

6 REPLIES 6
Read only

Former Member
0 Likes
584

give it in the screen

process before output.

module status_0106.

process after input.

module cancel at exit-command.

module user_command_0106.

process on value-request.

field li_list1 module f4_helep.

module cancel input.

leave program.

endmodule.

\[removed by moderator\]

Regards

Anbu

Edited by: Jan Stallkamp on Jun 10, 2008 2:27 PM

Read only

Pawan_Kesari
Active Contributor
0 Likes
584

Put code in this way..

MODULE <mod> AT EXIT-COMMAND

Read only

Former Member
0 Likes
584

PROCESS AFTER INPUT.

MODULE USER_EXIT AT EXIT-COMMAND.

u can go to se41 transaction and activate 'E' on it then run it wil work.

Read only

Former Member
0 Likes
585

Hi,

In order to achieve that,

1. Initially make the Cancel button in se41(menu painter) ,set the Function type to ' E '(Exit Command).This is very impt.

2. In PBO ,

write Module <modulename> at Exitcommand. Inside module u can write ur logic.

Rgds.,

subash

Read only

Former Member
0 Likes
584

Please mention the SY-UCOMM i.e, at which point you want to enter that fields to be entered.

For Ex: if you want to enter the fields at 'SAVE'

then like this

if field is initial and sy-ucomm = 'SAVE'

like this you can avoid your condition.

Read only

Former Member
0 Likes
584

Hi,

sorry , write the module <modulename> at Exit-Command in PAI and make sure that the Function type is set to "E".

Rgds.,

subash