I guess it is because the program property "Floating point Arithmetic" is activated in one, but not in the other.
Hello Kethan,
Christian is correct, it is because of the "Fixed Point Arithmetic" in the attributes of the program.
below is the SAP standard documentation for the field "Fixed point arithmetic"
------------------------------------------------------------------------------------------------------------------------------------------
If you mark this checkbox, all calculations in the program will use fixed point arithmetic.
If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC or QUAN) will be treated as integers when they are used in assignments, comparisons, and calculations, irrespective of the number of decimal places defined. Intermediate results in arithmetic calculations will also be rounded to the next whole number. The number of decimal places defined is only taken into account when you output the answer using the WRITE statement.
------------------------------------------------------------------------------------------------------------------------------------------
Regards,
Thanga
Add comment