Test for number.
Hi,
I am new to ABAP. I have a variable which is defined as
str(2) type c.
The possible values here are numeric like 70,81 etc and alpha numeric like 9A, KR etc..
I need to reject the numeric values. Is there a test which can give me atrue or false value for this. something like isnumber() in C.
Please could someone help.
Thanks
Abdul
Hi,
I am new to ABAP. I have a variable which is defined as
str(2) type c.
The possible values here are numeric like 70,81 etc and alpha numeric like 9A, KR etc..
I need to reject the numeric values. Is there a test which can give me atrue or false value for this. something like isnumber() in C.
Please could someone help.
Thanks
Abdul
if str co '0123456789'.
Christian
Or.......
IF STR CA SY-ABCDE.
* Keep
ELSE.
* Reject
ENDIF.
Regards,
R Heilman
Thank you for the options..they worked..