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

Update Material Availability dates during order creation

Former Member
0 Likes
572

Hi,

We have a requirement to update the material availability in the schedule lines of the order when the order is being created.

We want the update to happen after the sales order is in the Data base. We tried calling a Function module in Update task. The function module is written in the EXIT_SAVE_DOCUMENT form of sales order user exit.

The FM is getting called on the commit work , but not updating the sales order. We are getting an error " Material availability date should be less than load date". On debugging we noted that the SD_SALES_SCHEDULE_MAINTAIN is called with a load date of 00/00/0000 since the sales order is not in DB.

Is there a way to call the FM after the sales order is in the database.

Regards,

Prabaharan G

1 REPLY 1
Read only

Former Member
0 Likes
382

Worked using the enhancement framework development