One of the problems with Select Option in Selection screen is that user cannot make it mandatory and populate multiple records in a popup without passing at least one value on the screen. This is usually a little annoying for the users especially when multiple select options are there on screen with more than few having multiple values to be fed in.

The solution is simple.

  1. Define tables – scarr, sscrfields – in top include.
  2. Remove Obligatory from Select Option variable
  3. At Selection Screen Output – loop on screen and when the field screen-name matches the variable, make screen-required as 2 and modify screen.
  4. At Selection Screen – if sscrfields-ucomm = ONLI and the value of the variable is blank, pop up the error.

Step 3 and 4 together essentially make the field mandatory.

Voila, problem solved.

~S