hi,
i hav customer no in my selection screen of my report. if i select the menu path program->execute in background and if cust no. is initial, the program shuld execute without any issue whereas if i execute the same program in foreground by hitting F8 and if cust no. is initial it should throw an error message as ' Enter Customer No.'.
how to do this?
can any one help in this.
here is the code which i hav written but it is not working......for both background and fore ground it is giving the error message.
AT SELECTION-SCREEN.
IF P_KUNNR IS INITIAL.
if sy-batch ne 'X'.
MESSAGE 'ENTER CUSTOMER NUMBER' TYPE 'E'.
ENDIF.
ENDIF.