Skip to Content

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

Selection Screen


I have placed two select-options in the selection-screen. As per the requirement; i want to allow execution of the program only if one of these two fields are populated with some value/s.

So I would like to throw a message if the user has not entered any value in any of the two select-options. Also after the display of the message control should be returned on that page only so that user can enter some value.

Could you please guide me on this problem?

Thanks & Regards

JIgar Shah.

Former Member
Former Member replied

Hello Jigar,

This is pretty simple.

Selection screen begin of block blk,

Select-options : p_matnr type mard-matnr.

Select-options: p_werks type mard-werks.

AT selection screen on block blk.

If p_matnr is initial.

if p_werks is initial.

Message e(999) "Enter valid plant or material



Hope this helps.



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