2006 Aug 23 6:39 AM
Hi All,
Is there is any function module for checking if an input is alphanumeric or a number?
2006 Aug 23 6:43 AM
IF wa_string CO '0123456789'.
*-- it has numbers only
ELSE.
*-- alpha numeric
ENDIF.
HI
good
i dont think there is any such function module who can check the number as alpha numeric or number, you have to write the logic for that.
thanks
mrutyun
2006 Aug 23 6:43 AM
IF wa_string CO '0123456789'.
*-- it has numbers only
ELSE.
*-- alpha numeric
ENDIF.
2006 Aug 23 6:55 AM
Hi,
or try with command catch (F1)
CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.
MOVE text TO amount.
ENDCATCH.
IF sy-subrc EQ 1.
*not numeric
...
A.
2006 Aug 23 6:51 AM
HI
good
i dont think there is any such function module who can check the number as alpha numeric or number, you have to write the logic for that.
thanks
mrutyun
2006 Aug 23 6:52 AM
2006 Aug 23 6:59 AM
Hello,
Use the FM <b>NUMERIC_CHECK</b>. It will gives u the DATATYPE OF THE INPUT.
If useful reward.
Vasanth
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |