Skip to Content
0
Jan 06, 2011 at 06:27 AM

User exit to update VBEP (XVBEP) records while changing VBAP-MVGR2

1993 Views

Hi experts,

I have a requirement below in the sales order user exits . please help.

During Sales order change (VA02), If I change the material group 2 (from additional data 1) vbap-mvgr2 field value from blank to '06', the delivery date of the sales order item needs to be redermined (i.e. vbep-edatu).

However, the change of field VBAP-MVGR2 doesn't trigger the user exits (USEREXIT_MOVE_FIELD_TO_VBAP, USEREXIT_MOVE_FIELD_TO_VBEP and USEREXIT_CHECK_VBEP). The only user exit I know that is getting called during this change is USEREXIT_CHECK_VBAP. If we write the code in USEREXIT_CHECK_VBAP for updating the delivery date (VBEP-EDATU), it is not updating the delivery dates. (I tried updating XVBEP, IVBEP1 tables also in this user exit, but once after saving the sales order and comeback to display/change mode the previous values in delivery dates still exist).

Can somebody suggest if there is any other user exit available which will update the VBEP, XVBEP tables after processing them.

Best regards,

Siva