I want to automatically change the Schedule Line tab's delivery date(VBEP-EDATU) when the Delivery Priority(VBAP-LPRIO) is changed in VA01 or VA02. I should edit it in USEREXIT_MOVE_FIELD_TO_VBEP right?
Lets say that the delivery priorities are:
01 - the delivery date or vbep-edatu should be three days from now.
02 - the delivery date or vbep-edatu should be tomorrow 8AM.
As I'm not sure that USEREXIT_MOVE_FIELD_TO_VBEP is always executed vhen VBAP is changed (only during creation?) I would also perform a loop in USEREXIT_SAVE_DOCUMENT_PREPARE in case of VBEP not changed.