Application Development 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: 

VOFM rounding issue need to perform calculations till only 2 decimals

Former Member
0 Kudos

Hello All,

In Sales order the price calculations are being performed till 4 decimal places but we want to restrict till 2 decimal only . Providing example

Suppose Price is 2 USD . Add 4.6% for adjustment , this will become 2.092 ( for qty 1 ). Now in column Amount in condition tab of sales Order I can see value as 2.09 .

The Quantiy for an Sales order item is 10 . SAP multiples 2.092 with 10 and we get 20.92 .

If we use value 2.09 and multiple it by 10 we will get 20.90 . Here we can see difference in amount by 2 cents.

We need to restrict calculation upto 2 decimals ( 2.09 ) and this shld be multiplied with 10 . Please guide me in detail on routine if any which we can use for this , how to write logic in this routine , do we need to use Exit ? .

Thanks a lot .

Sujit .

1 REPLY 1

Former Member
0 Kudos

Hi Sujit,

use WRITE A TO B 2 DECIMALS.

Thanks,

Naresh.