03-14-2007 2:17 PM
hallow
i use field dec 7 2 (enstd) and i have a lot of values and the size is too low i wont to buield data elment bigger then that but i dont now how much becouse the program have runtime erorr .
how much bigger i can do this field, and if i can use anoter field (in same type)but <b>bigger</b> then this field .
regards
03-14-2007 2:20 PM
Hi
You can use the field with TYPE P decimals 2
or TYPE F (float) if more decimal places are there.
they can handle any amount of values.
Regards,
Anji
03-14-2007 2:20 PM
Hi
You can use the field with TYPE P decimals 2
or TYPE F (float) if more decimal places are there.
they can handle any amount of values.
Regards,
Anji
03-14-2007 2:22 PM
03-14-2007 2:24 PM
use this dataelement
<b>DEC16_3 </b> Decimal number, 16 digits, three after decimal point
03-14-2007 2:25 PM
Hello,
I think u can make use of the domians
DEC20_2 DEC 000020 Dec20 with 2 decimal places
DEC20_3 DEC 000020 Dec20 with 3 decimal places
DEC20_4 DEC 000020 DEC20 with four decimal places
Thanks !!
Vasanth
03-14-2007 2:20 PM
Hello,
U can declare a dataelemnt of length 16 like this.
DATA: VAR(16) type p decimals 2.
Regards,
Vasanth
03-14-2007 2:23 PM
03-14-2007 2:38 PM
Hi Antonio,
try this:
DATA: <b>I TYPE DEC_16_02_S</b> value '1.20' .
*
DO.
if sy-index > 7. exit. endif.
I = I * I.
WRITE: / I.
ENDDO.
Regards, Dieter