Note
You should only perform very expensive checks with AT SELECTION-SCREEN if the program is then started.
If the field has one of the values 'ONLI' (= Execute) or 'PRIN' (= Execute and Print), the report is then started,
eg:
FORM F_CHECK_SELECTION_PARAMETERS .
IF S_KUNWE[] IS INITIAL AND
S_DN_NO[] IS INITIAL AND
S_DN_DT[] IS INITIAL AND
S_SO_NO[] IS INITIAL AND
S_SO_DT[] IS INITIAL AND
S_AUART[] IS INITIAL.
IF SY-UCOMM = 'ONLI'.
* Selection was not restricted
MESSAGE W096.
ENDIF.
ENDIF.
ENDFORM. " F_CHECK_SELECTION_PARAMETERS