04-11-2008 11:22 AM
hi all,
To check whether an input contain only numeric, we'll use
CALL FUNCTION 'NUMERIC_CHECK'.
how about for data type P which is containing decimal?
eg.
123.56
it will be treated as character due to the decimal dot.
i'm thinking of doing the CALL FUNCTION 'NUMERIC_CHECK' by separate it into 123 and 56.
please kindly advise if there is better option to do that.
thanks.
04-11-2008 11:29 AM
Declare field ..
data : v_check(11) value '0123456789.'.
data : v_num(20).
pass '123.56' to v_num.
if v_num CO v_check.
else.
*give a message not numeric ...
endif.
04-11-2008 11:29 AM
Declare field ..
data : v_check(11) value '0123456789.'.
data : v_num(20).
pass '123.56' to v_num.
if v_num CO v_check.
else.
*give a message not numeric ...
endif.