Skip to Content
0
Former Member
Jul 10, 2007 at 05:25 PM

Conversion from CHAR to DECIMAL with different lengths

101 Views

I have to move a variable of type char to decimal.

Note that ZDEC below is a data element of type DEC (10,7)

Here's an example.

DATA: gd_char(6) TYPE C VALUE '200.0000001',

gd_dec TYPE ZDEC.

MOVE gd_char TO gd_dec.

-> I get a run time error