Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Selection screen processing

Dear all,

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.

message...

endif.

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?

Regards.

Tags:
Former Member
Former Member replied

Hi

AT SELECTION-SCREEN.

if sy-ucomm = 'ONLI'. "Only when you execute the program

if field1 is initial....Your condition for giving error.

endif.

Regards

Navneet

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question