HI,
Can anyone tell me what is wrong with the following code.
IF NOT P_KUNNR IS INITIAL.
* ** IF P_KUNNR NOT BETWEEN R_KUNNR-LOW AND R_KUNNR-HIGH.
IF P_KUNNR NOT IN R_KUNNR.
R_KUNNR_LINE-SIGN = 'I'.
R_KUNNR_LINE-OPTION = 'EQ'.
R_KUNNR_LINE-LOW = P_KUNNR.
APPEND R_KUNNR_LINE TO R_KUNNR.
ENDIF.
ENDIF.
When P_KUNNR is not inital and R_KUNNR was not containing P_KUNNR, mycode does not pass through the ranges statements.