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

At selection screen on input

Former Member
0 Likes
7,111

What is the use of the event at selection-screen on input?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,101

Hi,

This event is used mainly for validating an input provided to the selection screen element. Once a value is entered in the Selection Screen this Event gets triggered.

The syntax for this is

AT SELECTION-SCREEN ON {para/selcrit}

Effect

This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.

No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.

Note

If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.

Reward if helpful.

3 REPLIES 3
Read only

Former Member
0 Likes
3,102

Hi,

This event is used mainly for validating an input provided to the selection screen element. Once a value is entered in the Selection Screen this Event gets triggered.

The syntax for this is

AT SELECTION-SCREEN ON {para/selcrit}

Effect

This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.

No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.

Note

If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.

Reward if helpful.

Read only

Former Member
0 Likes
3,101

Hi Naveen,

The AT SELECTION-SCREEN is like the PAI module of a dialog screen for the selection screen of a report program. You can perform validations as you would in PAI.

Similarly (just for your information) the report selection screen event equivalent to PBO of a dialog program is AT SELECTION-SCREEN OUTPUT. This one allows you to default values into your report selection screen parameter/select option etc.

Hope this helps.

Regards,

Aditya

Read only

Former Member
0 Likes
3,101

Hi naveen,

the event at selection-screen on {para|selcrit} is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again. (sap help).