Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

wrong result in simple computation

Hi Gurus

need help, i have a requirement for computing in vat ,in calculator it seems correct but in abap the result is different. this weird scenario i encountered.

all variables are in type p decimals 2.

netwr = 249.38

kbetr = 50.00

i try 2 approach.

vat = (netwr * ( kbetr / 1000))


tmp_var = kbetr / 1000.

vat = netwr * tmp_var

the result is vat = 1246.90

but in calculator or in excel is 12.469

any idea? thanks

Former Member
Former Member replied


Check whether the fixed point arithmetic is checked or not. This makes lot of difference. To check this Goto Attributes of your report, a pop up window appears. Here you have that checkbox Fixed Point Arithmetic. Check it, Save and Close.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question