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

Purch. Req. line item value Function Module

Former Member
0 Likes
773

Hi Guys

I have written a few programs containing the Purchase Requisition line item value. To calculate this, I happily multiplied the quantity (MENGE) by unit price (PREIS), and never considered the UoM (MEINS) or Price Unit (PEINH).

Since I am lazy, I am looking for a function module that will do my work for me.

Failing that, are there any other potential areas that I could make a mistake when calculating this value?

Cheers

Lyal

2 REPLIES 2
Read only

Former Member
0 Likes
520

Hello Lyal,

If EBAN-MEINS <> EBAN-PEINH, it is required to convert EBAN-MENGE (Requisition quantity) from UOM (MEINS) into Price Unit (PEINH) using function CF_UT_UNIT_CONVERSION.

Thanks,

Venu

Read only

0 Likes
520

Hi Venu

Thanks for the reply. It is a bit difficult to compare <b>MEINS</b> and <b>PEINH</b>, as one is a UoM field and the other a quantity.

Would it be enough if I just divided <b>EBAN-MENGE</b> by <b>EBAN-PEINH</b> to work out the 'actual' quantity? or am I missing something fundemental here?

Thanks!

Lyal