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.
Requires Free Membership to View
When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.
Hannah Smalltree, Editorial DirectorThis was first published in December 2002
Join the conversationComment
Share
Comments
Results
Contribute to the conversation