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

check for numeric characters only

Former Member
0 Likes
515

Hi Great Guru's,

How we can check through a Badi that the entries filled are numeric(i.e 1,2 ,3 etc) .Waiting for you all to reply.

Thanks,

Rahul

3 REPLIES 3
Read only

Former Member
0 Likes
492

IF V_NUM CO '0123456789'.

*numeric

ENDIF.

Read only

Former Member
0 Likes
492

Hello,

Use the FM <b>NUMERIC_CHECK</b>

Read only

Former Member
0 Likes
492

YOu can use teh FM:

NUMERIC_CHECK

or

the code

if string co '1234567890 '.

  • Only numbers.

else.

  • Some non numeric chars exist

endif.