11-30-2005 6:50 PM
HI all,
IS there a easy way to test for an alpha Numberic characters in a String.
In my Report, i have to check if the Company Code is Numeric or Alpha Numeric.
Thanks in Advance.
Ravi.
11-30-2005 6:52 PM
IF BUKRS CO '0123456789'.
*-- it has numbers only
ELSE.
*-- alpha numeric
ENDIF.
11-30-2005 6:52 PM
IF BUKRS CO '0123456789'.
*-- it has numbers only
ELSE.
*-- alpha numeric
ENDIF.
11-30-2005 6:52 PM
Hi Ravi;
If wf_string co '0123456789'.
...do something.
else.
...do something else.
endif.
Cheers,
John
11-30-2005 6:55 PM
11-30-2005 6:57 PM
A check can be made by using the statement string CO '0123456789' for numeric. if not it is alpha numeric. If you need a conversion then you can use the FM conversion_exit_alpha_input (external -->internal)or conversion_exit_alpha_output(Internal --> to external)