‎2008 Jun 10 1:03 PM
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.
‎2008 Jun 10 1:20 PM
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
‎2008 Jun 10 1:07 PM
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
‎2008 Jun 10 1:14 PM
‎2008 Jun 10 1:20 PM
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.
‎2008 Jun 10 1:20 PM
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
‎2008 Jun 10 1:29 PM
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.
‎2008 Jun 10 1:34 PM
Hi,
sorry , write the module <modulename> at Exit-Command in PAI and make sure that the Function type is set to "E".
Rgds.,
subash