‎2007 Dec 31 5:50 PM
Hello All,
Could any of you provide example code for user exit USEREXIT_AVAILABILITY_OUT in Include RV03VFZZ?
I'm trying to figure out how I can change the confirmed quantity and or proposed delivery date and can't seem to get it to keep any values I change. I've tried changing internal tables MVERF_POS and deep internal table MVERF_POS-EINTEIL with no luck.
Am I changing the correct tables? If not, which ones should I be changing?
Thank you,
Jerry
Edited by: Jerry Walters on Jan 2, 2008 3:46 AM
‎2016 Apr 21 10:27 AM
What has been observed by me in my experience is that the confirmed quantities and delivery dates are used from XMVERF_POS-EINTEIL and not MVERF_POS-EINTEIL.
MVERF_POS is just a work area that is used to manipulate XMVERF_POS. This is the reason, modifying MVERF_POS alone will do nothing.
This XMVERF_POS is an internal table and EINTEIL is a deep structure that contains the schedule lines. Here, you can either manipulate the existing confirmed schedule lines or add new ones if it is a late confirmation without specifying the ETENR.
However, if you do this, you need to be careful of the delivery quantity, as SAP uses MDVEX table for storing the confirmed quantities and they are already netted with the delivered quantity hence the question of handling delivered quantity doesn't arise in this user exit, but here since we are manipulating XMVERF_POS, we need to be careful.