Selection screen processing
I've got a selection screen with two select-options fields for which I would like to make a check:
If field 1 and field 2 are empty then triggering an Error message.
For this I thought to use the "at selection-screen block" combined with
if field 1 and field 2 is initial.
But in that case, I can not use any more the multiple selection button (at the right of the field) becase I have my event "at selection-screen block" triggered with the error message.
I tried to declare my message after the start of selection but then I have a new empty screen with my error message on the bottom of it.
How to deal with that?
if sy-ucomm = 'ONLI'. "Only when you execute the program
if field1 is initial....Your condition for giving error.