Skip to Content
Former Member
Jun 06, 2010 at 08:03 PM

Update Material Availability dates during order creation



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.


Prabaharan G