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: 

How to automatically change the VBEP-EDATU when VBAP-LPRIO is changed?

walkerist
Participant
0 Kudos
609

Hi,

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.

Is it possible?

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos
534

Yes you can.

Check that vbap data was actually changed (*vbap)

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.