08-21-2006 1:12 PM
Hi Friends,
I'm facing a problem with a currency field of infotype 8.The field is of currency type with length 17 and 2 decimals.When i do the calculation for this field,this field stores 0.05 instead of 5.How to convert this value as a whole no.
RESULT-AMOUNT is of type currency of length 17 and decimals 2.
M_BTR is of type currency of length 13 and decimals 2.
P0008-DIVGV is of type decimals of length 5 and decimals 2
For ex, RESULT-AMOUNT = ( M_BTR / P0008-DIVGV ).
Here in above statement M_BTR = 833.33
P0008-DIVGV = 162.5
so RESULT-AMOUNT should be 5.13 instead of 0.05.
Can anyone tell me on how to correct this from 0.05 to 5.13 as per this example.Also i should not change the data type definition of RESULT-AMOUNT.
Regards,
Vadivel.
08-21-2006 1:16 PM
hello,
RESULT-AMOUNT = ( M_BTR / P0008-DIVGV ) * <b>100.</b>
Regards,
Naimesh
08-21-2006 1:18 PM
in the program attributes,
have you checked FIXED POINT ARITHMETIC is on?
Regards
srikanth