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

interface program- check one input field isnumeric not alphabet

Former Member
0 Likes
470

hi, everyone

i write a interface program which required me to check one field that is numneric not alphabet, is there some function or statement to resolve this problem?

means that if the filed value is '123456', then it is right,

if the field value is '123abc' or 'abcde', then is not right, and i will output a error message that' this field must be numeric"

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
445

Hello,

Process on this condition.

if field co '1234567890'.

<process>

endif.

Hope it helps.

Thanks,

Jayant

hi, everyone

i write a interface program which required me to check one field that is numneric not alphabet, is there some function or statement to resolve this problem?

means that if the filed value is '123456', then it is right,

if the field value is '123abc' or 'abcde', then is not right, and i will output a error message that' this field must be numeric"

2 REPLIES 2
Read only

Former Member
0 Likes
446

Hello,

Process on this condition.

if field co '1234567890'.

<process>

endif.

Hope it helps.

Thanks,

Jayant

Read only

former_member156446
Active Contributor
0 Likes
445

no need of using a FM

all you need to write a small logic..

if string CA Sy-abcde.

write:/ 'wrong'.

else.

write: 'right'.

endif.