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

Input in required fields

Former Member
0 Likes
748

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

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

4 REPLIES 4
Read only

Former Member
0 Likes
680

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

Read only

Former Member
0 Likes
679

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.

Read only

Laxmana_Appana_
Active Contributor
0 Likes
679

Hi,

Without selecting the input required option , validate the field blank values in chain-endchain process.

Laxman

Read only

sridharreddy_kondam
Active Contributor
0 Likes
679

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