I have a select-option like:
SELECT-OPTIONS S_MATNR LIKE MARA-MATNR.
Now, the problem is that the user wants to enter a list of values in the extended value option (the arrow icon). But because of "AT SELECTION-SCREEN" validation, the error comes first and does not allow the user to go any further. Of course, a simple "*" produces the wanted result, but it would be nice if the event is not triggered when the arrow icon (multiple selection) is clicked. So how do we get around this problem?
Go into DEBUG mode and capture the Function Code of that extension box and you validate against that SY-UCOMM
Example: AT SELECTION-SCREEN. IF SY-UCOMM <> '%015'. PERFORM MATERIAL_NUMBER. ENDIF.