10-10-2008 12:31 PM
hi all,
i have some validation code for fields under "At selection screen"
and code for disabling fields under "At selection screen output"
now when i select the radio button "At selection screen" is triggered and error is shown before "At selection screen output"
could get triggered , hence the selected radio button is selcted but the corresponding feild remains disabled as "At selection screen output" did not got triggered.
can anyone help me out.
10-10-2008 12:50 PM
If you need to validate fields only before extecution, You can code in this way.
at selection-screen.
if sy-ucomm EQ 'ONLI'.
Validations...
endif.
at selection-screen output.
..........................
........................
Regards
Sathar
10-10-2008 12:33 PM
Hi,
Did you check what is causing the error in the 'At Selection screen' event. Please enter a data that is not causing the error. Once you enter the correct data, the 'At selection screen output' event is triggered again and you will have a changed selection screen.
Regards,
Pramod
10-10-2008 12:35 PM
Hi,
At Selection Screen Output : Event is triggered only once when screen is displayed. If your requirement is to enable/disable a particluar field based on the radio button then it is advisable to write it in At Selection Screen event. (Use IF and CASE conditons under this event)
Thanks & Regards,
Navneeth K.
10-10-2008 12:40 PM
Hi,
An error in PAI(At-selection Screen in case of Selection Screen) is never followed by PBO(At-selection Screen output in case of Selection Screen)
Make your code in PAI independent of the code in PBO
10-10-2008 12:50 PM
If you need to validate fields only before extecution, You can code in this way.
at selection-screen.
if sy-ucomm EQ 'ONLI'.
Validations...
endif.
at selection-screen output.
..........................
........................
Regards
Sathar
10-10-2008 2:58 PM
10-10-2008 3:00 PM