Application Development 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: 

MODULE USER_COMMAND_0200 AT EXIT-COMMAND.

Former Member
0 Kudos

Hi Experts,

I knew that the following statements allows user to by pass all the screen validations, so to achieve this we have to declare a function code in SET PF-STATUS of type Exit Command. So, my doubts r,

1- Anyway, we r adding the AT EXIT-COMMAND as a suffix to to Module statement, so again What is the necessity declaring in the SET PF-STATUS as a function code?

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0200 AT EXIT-COMMAND.

2- What else wuld do the above statement apart from overcoming the validations(coz the author has mentioned this statement - ''An Exit-command allows you to insert functionality into the PAI that by passes all screen validation '', Which is I dont understand!)?

ThanQ.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi Srinivas,

Let us consider the following example:

If a user wants to exit a screen, by clicking the BACK button, he should be taken out ..right?

Instead, should there be a message poping up saying "Mandatory fields are not entered".. or "enter character data in name field"...ect..?

no...hence, to ignore these validation, we put the code to exit the screen in a module. This module has to be defined with ...AT EXIT-COMMAND extension.

Hope this answers your question.

Sajan Joseph.

5 REPLIES 5

Former Member
0 Kudos

The Addition AT EXIT-COMMAND is designed to initaite and process the function codes that have type Exit Command. So it is the combination of the function type and the EXIT-COMMAND that will give you the required results. And mind you, this combination is triggered if there is a mandatory field validations that have to be skipped. In other cases this acts as a normal function code.

''An Exit-command allows you to insert functionality into the PAI that by passes all screen validation '' - Means that If there are any other validations apart from the mandatory check. Bottomline is that if there are any other validations like avalilability check, etc... these are ignored as well as the mandatory fields.

Former Member
0 Kudos

hi Srinivas,

Let us consider the following example:

If a user wants to exit a screen, by clicking the BACK button, he should be taken out ..right?

Instead, should there be a message poping up saying "Mandatory fields are not entered".. or "enter character data in name field"...ect..?

no...hence, to ignore these validation, we put the code to exit the screen in a module. This module has to be defined with ...AT EXIT-COMMAND extension.

Hope this answers your question.

Sajan Joseph.

Former Member
0 Kudos

Hi,

SET PF-STATUS 'xxxx' is the toolbar that you are setting for your program. In order to do some operations or process based on the key that you have pressed, you assign a funct.code to that and write the coding in the PAI event.

This at exit-command is fired when you have exit from teh current screen.

Whenever the program executes a EXIT command, the screen is not validated, it will exit to the screen 0. Try clicking on the Yellow and Red button on your toolbar next to the Back button, you will understand,

Regards

Subramanian

Former Member
0 Kudos

AT EXIT-COMMAND IS NOT ASSOCIATED WITH ANY SCREEN VALIDATION MEANS ...SUPPOSE YOU HAVE ONE SCREEN WITH MANDATORY INPUT MEANS IF IT IS BLANK IT WILL THROW AN ERROR...IF YOU ARE NOT USING AT EXIT-COMMAND FOR PRESSING PBACK OR CANCEL BUTTON IT WILL SHOW YOU THE ERROR FOR FIELD BECAUSE IT IS EMPTY AND YOU CANT COME BACK.

IN PF-STATUS OR IN SCREEN LAYOUT WE ARE ASSIGNING THE FN CODE TYPE E IF WE PRESS THAT BUTTON IT WILL TRIGGER THE MODULE ASSOCIATED WITH AT EXIT-COMMAND. SO WE ARE SAYING THE SYSTEM THAT THIS FN CODE SHOULD TRIGGER THE MODULE AT EXIT-COMMAND.

REGARDS

SHIBA DUTTA

0 Kudos

ThanX to all.