Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

difference between numeric and alpha numeric one

Former Member
0 Likes
721

hi

suppose i am having one field. how to find whether it is numeric one or alphanumeric one.

kindly give me your valuble inputs

4 REPLIES 4
Read only

Former Member
0 Likes
593

IF wa_string CO '0123456789'.

*-- it has numbers only

ELSE.

*-- alpha numeric

ENDIF.

Read only

Former Member
0 Likes
593

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

Read only

Former Member
0 Likes
593

IF lvariable CA SY-ABCDE.

--alphanumeric.

ELSEIF lvariable CO '0123456789'.

--numeric.

ENDIF.

Read only

Former Member
0 Likes
593

It depends on whether or not '123,456.78' is numeric in your checking.

Rob