Skip to Content
0
Former Member
May 06, 2013 at 01:27 PM

Check if string is numeric

86 Views

FORM IsNumeric.

DATA: numeric(10) TYPE C VALUE '0123456789 ',
account(10) TYPE C VALUE '600',
rc TYPE C.

IF account CO numeric.
rc = ''.
ELSE.
rc = 'X'.
ENDIF.
ENDFORM.

The result is rc = 'X'

Where I'm wrong?

Regards,

Mioa