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

Former Member
0 Likes
835

hi experts,

can u p[lz tell me what is the use of 'at selection-screen on field'

7 REPLIES 7
Read only

Former Member
0 Likes
817

hi,

at selection-screen on field.

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.

this can b used for validating the value entered in the field.. and enable re-enter of value( in case of wrong value).

hope it helps,

Regards,

Viji

Read only

Former Member
0 Likes
817

HI,

this is for validating a particular screen field.

<b>example:</b>

  • Selection screens

PARAMETERS p_carrid TYPE spfli-carrid.

  • Handling selection screen events

AT SELECTION-SCREEN ON p_carrid.

IF p_carrid IS INITIAL.

MESSAGE 'Please enter a value' TYPE 'E'.

ENDIF.

rgds,

bharat.

Read only

Former Member
0 Likes
817

Hello,

When u enter any value on that particular field

then the code under this event will run.

This event is assigned to the selection screen fields corresponding to the report parameter or selection criterion field.

If the report starts an error dialog at this point, precisely these fields become ready for input.

reward if helpful,

Regards,

LIJO

Read only

Former Member
0 Likes
817

If you do a validetion check for a field say f1 in that event then after the validetion check if the validetion failed then in the selection acreen it will display the error message due to validetion check and only the field f1 will be ready for input and all other fields will be in non-editable mode.

Read only

Former Member
0 Likes
817

Hi

<b>'at selection-screen on field</b>

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.

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 field is triggered.

reward if usefull

Read only

Former Member
0 Likes
817

hi,

At selection-screen on <Fieldname>

this will help u in validating a field for a given condition...

Reward with points if helpful.