Test for number.

Question:
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
Answer:
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
Answer:
Or.......
IF STR CA SY-ABCDE.
* Keep
ELSE.
* Reject
ENDIF.
Regards,
R Heilman
Answer:
Thank you for the options..they worked..

More Articles:

reading org units - help!?
BAPI to create Sales Order with reference?
move field in material master?
Table storing current sessions withy object name?
How to read tables Bsad, Bsak with high performance?
how to find docno(Belnr) created thru MIRO in 4.7?