‎2007 Jul 02 1:28 PM
hi,
When i am multiplying
xkomv-kwert = xkomv-kbetr(11.14) * KOMP-MGAME( 1.000 this is one).
it is giving 11140.00 what need to be done, I am aware because of the QUANTITY field, now please tell me
1. Whether I need to pass the UNIT field? HOW?
2. or I need do use some numerator / denominator.
regards,
Prabhu
Prabhu
‎2007 Jul 02 1:32 PM
hi Prabhu,
goto the attributes of the program and check if <b>Fixed Point Arithmetic</b> checkbox is checked or not
<b>Fixed point arithmetic</b>
If you mark this checkbox, all caluculations 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.
‎2007 Jul 02 1:32 PM
hi Prabhu,
goto the attributes of the program and check if <b>Fixed Point Arithmetic</b> checkbox is checked or not
<b>Fixed point arithmetic</b>
If you mark this checkbox, all caluculations 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.
‎2007 Jul 02 1:35 PM
Hello,
Check the Flag in the Attributes of the report<b> FIXED POINT ARITHMETEIC.</b>
Or <b>Divide the result by 1000</b>
Vasanth
‎2007 Jul 02 1:54 PM
hi,
It is a SAP statndard program for USER EXITS so there is no FIXED POINT ARITHMETEIC.
regards,
Prabhu