01-24-2008 3:09 AM
Hi all,
How solve this '4.8480000000000001E+02' convert to numberic.
Because i use table KBED i take fiel name KBEASOLL (KBED~KBEASOLL)
This mean start machine time can read from 1 to 9.
But i show in table KBED is '4.8480000000000001E+02' how can convert to numberic 5, 6, 7 ...???
thanks so much.
01-24-2008 3:16 AM
Hi Tham,
just use this,
data:
expo type ANZ_TAGE,
temp(16) type p decimals 14.
expo = '3.9604320000000000E+08'.
move expo to temp.
write: expo,temp.
if helpful dont forget to reward points.
Regards,
DVNS
01-24-2008 3:21 AM
Hi,
1) just declare a variable say fld1 type p decimals 2(as much as u need)
and move KBED-KBEASOLL to fld1...it ll be converted automatically.
check dat by writing it write : fld1.
2) use FM FLTP_CHAR_CONVERSION
CALL FUNCTION 'FLTP_CHAR_CONVERSION'
EXPORTING
decim = 0
expon = 0
input = value_in
ivalu = 'X'
IMPORTING
flstr = value_out.(type c)
Cheers,
Will.
01-24-2008 3:36 AM
01-24-2008 3:51 AM
thanks DVNS.
data s type ANZ_TAGE.
i can solved
ex: 2.796800000000000E+03
and convert 2,796.80000000000020
please more to me
i can not write 2,796.800
because write: temp(16)
pls ...
how i can write 2,796.800 ???
thanks so much.
01-24-2008 4:06 AM