Use the following logical expression to check whether the contents of a field satisfy the criteria in a selection table:
... <f> IN <seltab> ....
For further information about selection criteria and how to use them, refer to
Selection Screens.
DATA WA TYPE SPFLI.
SELECT-OPTIONS S_CARRID FOR WA-CARRID.
IF 'LH' IN S_CARRID.
WRITE 'LH was selected'.
ENDIF.
The logical expression in the IF statement is true if the user entered a selection on the selection screen containing the value ‘LH’.