‎2006 Sep 04 10:57 AM
hi
suppose i am having one field. how to find whether it is numeric one or alphanumeric one.
kindly give me your valuble inputs
‎2006 Sep 04 10:59 AM
IF wa_string CO '0123456789'.
*-- it has numbers only
ELSE.
*-- alpha numeric
ENDIF.
‎2006 Sep 04 11:00 AM
DATA : V_STRING(20) TYPE C.
if v_string co '0123456789'.
its a numeric.
else.
alpha numeric.
endif.
Alternatively,
you can use <b>NUMERIC_CHECK</b> function module.
Srikanth
Message was edited by: Srikanth Kidambi
Message was edited by: Srikanth Kidambi
‎2006 Sep 04 11:03 AM
IF lvariable CA SY-ABCDE.
--alphanumeric.
ELSEIF lvariable CO '0123456789'.
--numeric.
ENDIF.
‎2006 Sep 04 4:46 PM
It depends on whether or not '123,456.78' is numeric in your checking.
Rob