Hi
Today I found a thread with this text:
Hi All,
How to get LFPMG field in VT02N tcode item overview tab, in which table it is storing?
Thanks,
Madhan.
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Mar 3, 2011 2:43 PM
As I have searched this answer myself - with out any luck - I'm a little surprised about that Moderator message. The question has been discussed in other threads, but none of these seems to have the correct solution.
I already know a solution for outbound deliveries with ref. to a sales order:
1) as starting point you have a delivery
2) via VBFA->vbap find the order qty from the preceding sales order.
3) via vbfa->lips summarize all deliveries for that order (without the starting point delivery)
4) LFPMG = the found order qty. minus the summarized delivery qty.
But what if the delivery refers to a purchase order?
And the rely interesting question. Is there a function module taking care of all scenarios?