Skip to Content
author's profile photo Former Member
Former Member

quantity field error

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 12: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.