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

Need Example code for USEREXIT_AVAILABILITY_OUT

Former Member
0 Likes
2,194

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

1 REPLY 1
Read only

kartefact
Active Participant
0 Likes
918

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.

KR