Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

quantity field error

Former Member
0 Likes
663

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
593

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.

3 REPLIES 3
Read only

Former Member
0 Likes
594

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.

Read only

Former Member
0 Likes
593

Hello,

Check the Flag in the Attributes of the report<b> FIXED POINT ARITHMETEIC.</b>

Or <b>Divide the result by 1000</b>

Vasanth

Read only

0 Likes
593

hi,

It is a SAP statndard program for USER EXITS so there is no FIXED POINT ARITHMETEIC.

regards,

Prabhu