Skip to Content
0
Former Member
Jan 07, 2011 at 11:49 AM

Wrong calculation for price per unit

331 Views

While creating sales order, i need to calculate materil price per unit.

So i used the formula:

price_per_unit = net_amount / quantity.

i have declared the net amount and price_per_unit like vbap-netpr and quantity like vbap-zmeng.

But i m getting the wrong anwer.

Example : If the Net Price is 3766.19 and quantity = 250 . Price should be 15.016

The I am getting 0.02 as price.

Is it about declaration error?

Thanks in advance.

Ezhil.