‎2006 Jun 28 9:48 AM
Hi,
I have made input required in some of the input fields in a screen. But I want the user to be able to go back in the program whitout putting values in the required fields by pressing back, cancel etc.
But no matter what button is pressed the program diplays a message "Make an entry in all required fields". The only way to get out of the screen is to make entries in the required fields or close the session. Does anyone know how to get around this?
All answers will be appreciated and rewarded.
Thanks
Magnus
‎2006 Jun 28 9:49 AM
Hi
You have to active a code for EXIT-COMMAND in yor bar.
PROCESS PAI.
MODULE EXIT AT EXIT-COMMAND.
MODULE EXIT.
SET SCREEN 0. LEAVE SCREEN.
ENDMODULE.
From SAP help:
.............
The module is only processed if the user enters a command beginning with "/E" in the command field, or chooses a function type E (assigned in the function list in the Menu Painter).
This addition is also valid for standalone MODULE statements without field assignment.
AT EXIT-COMMAND is only allowed in the PROCESS AFTER INPUT event. A module with this addition is processed before the automatic input checks and before all other PAI modules.
.................
Max
‎2006 Jun 28 9:49 AM
Hi
You have to active a code for EXIT-COMMAND in yor bar.
PROCESS PAI.
MODULE EXIT AT EXIT-COMMAND.
MODULE EXIT.
SET SCREEN 0. LEAVE SCREEN.
ENDMODULE.
From SAP help:
.............
The module is only processed if the user enters a command beginning with "/E" in the command field, or chooses a function type E (assigned in the function list in the Menu Painter).
This addition is also valid for standalone MODULE statements without field assignment.
AT EXIT-COMMAND is only allowed in the PROCESS AFTER INPUT event. A module with this addition is processed before the automatic input checks and before all other PAI modules.
.................
Max
‎2006 Jun 28 9:52 AM
Hello,
Assign a function code to the BACK or CANCEL button and set this function code to type 'E' for EXIT.
Then in the PAI-processing of your screen at a statement ...MODULE AT EXIT-COMMAND.
This module will then be processed before the "Obligatory check" and in this module you set the next screen or LEAVE TO SCREEN 0.
Regards,
John.
‎2006 Jun 28 9:52 AM
Hi,
Without selecting the input required option , validate the field blank values in chain-endchain process.
Laxman
‎2006 Jun 28 10:06 AM
Hi Magnus,
U have to give the name of button as CANCEL and handle it in PAI as
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
Regards,
Sridhar