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

Material availability Date - User Exit

Former Member
0 Likes
2,926

Dear All,

Can any one help me in finding out User Exit to change Material Availability date in VA01, which system propose automatically.

The Problem is I need to assign Mat aval. date as say SY_DATUM + 60. Then system should take this date for ATP calculation(for eg: Loading date,Goods issue date,Transport.plan.date) and finally it should propose Delivery date.

It would be great helpfull for me if any one help me in this issue ASAP.

Advance Thanks for your help

With Regards

K.Babu

1 REPLY 1
Read only

Former Member
0 Likes
1,198

Hi,

Try using USEREXIT_AVAILABILITY_IN(RV03VFZZ) or USEREXIT_ADD_FIELD_TO_LINE(FV45VFZZ) exits in SD. Due to various combinations possible (for example if you use route-scheduling it may behave differently than otherwise), it may not be possible to apply a common logic.

I would suggest using USEREXIT_ADD_FIELD_TO_LINE to modify the date fields in the structure MVERF (field EDATU : Delivery date, MBDAT : Material avail. date and so on). At this point, system has already calculated the first set of dates based on customer requested delivery date, so you will need to do adjustments in all fields accordingly.

Eg in this exit:

w_date = sy-datum + 60.

offset = w_date - mverf-mbdat.

mverf-mbdat = mverf-mbdat + offset.

mverf-lddat = mverf-lddat + offset.

mverf-edatu = mverf-edatu + offset.

...

Please note it will need some adjustments if you have a shipping calendar (eg sundays off..) in which case the offset may be a little different for EDATU.

cheers,