Hi Perumal,
Check you program attributes->Fixed point Arithmetic Check box should be checked otherwise the calculations will not be accurate.
I tried an example like below.
Case1 : Fixed point Arithmetic Checked
data : lv_netwr TYPE BPREI VALUE '741.67'.
DATA : lv_drk TYPE BPREI VALUE '10.00'.
DATA : lv_val TYPE BPREI.
lv_val = ( lv_netwr / 100 ) * lv_drk.
WRITE : / lv_val.
OUTPUT : 74.17
Case2 : Fixed point Arithmetic UnChecked
OUTPUT : 7,420.00
Once check and revert.
Regards,
Pavan
Hi Thangam,
Whenever we multiply or divide anything with the Condition value (KWERT) the decimals always behave like this. To overcome this issue, usually it happens in pricing routines, we adjust the value by multiplying/divide with multiples of 10. This adjusts the decimal points correctly.
Regards,
Aashika
Hi Pavan,
Yeah now working fine.. Thanks for your suggestion.
Regards,
Thangam.P
Add comment