Skip to Content

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

Problem with non currency field calculations to become curr

Hi guys,

Is there a problem if I have a QUAN field and DEC field forming to become a CURR field? I mean a have this computation below:

v_var1 = v_var2 * v_var3.

where v_var1 type QUAN, v_var2 type DEC and v_var3 type CURR...

would it incur any problem with the calculations?

Thanks!

Tags:
replied

Hi,

Did you try ?

Worked for me flawlessly

tables bseg.
parameters : qty like bseg-menge,
                   amt like bseg-dmbtr.

data : result like bseg-dmbtr.


result = qty * amt.

            write result.

The only issue is that the result will be rounded upto 2 decimals.

But if you declare result as

data : result(13) type p decimals 3.

Then there will be no issues.

regards,

Advait

Edited by: Advait Gode on Oct 3, 2008 3:59 PM

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