I have a program in which i dont want decimal values.So i am moving the value from Floating point to int4.Now i have a problem that one of the values is '3.0114e+09' and more and its giving a dump due to overflow .Doe any know how to sole this .
the type for
Data v_var type F value '3.0114e+09'.
data v_int type int4.
move v_var to v_int.
write: / v_var, v_int.
the code in my program is
MOVE TIME_SERIES_ITEM-TIME_SERIES_VALUE TO WA_DOWNLOAD-M.
TIME_SERIES_ITEM-TIME_SERIES_VALUE is of type /SAPAPO/FLTP ie is of type FLTP length 16 and decimals 16
WA_DOWNLOAD-M is of type int4.
Make sure you have the "Fixed Point Arithmetic" checked in the attributes of the program and declare your variable as P DECIMALS 0.