‎2007 Sep 18 7:18 AM
hi experts,
can u p[lz tell me what is the use of 'at selection-screen on field'
‎2007 Sep 18 7:24 AM
‎2007 Sep 18 7:24 AM
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
‎2007 Sep 18 7:25 AM
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.
‎2007 Sep 18 7:25 AM
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
‎2007 Sep 18 7:26 AM
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.
‎2007 Sep 18 7:55 AM
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
‎2007 Sep 18 7:58 AM
hi,
At selection-screen on <Fieldname>
this will help u in validating a field for a given condition...
Reward with points if helpful.