Application Development 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: 

Creating SD schedule lines in user exit

roland_spindler
Participant
0 Kudos

Hello,

We are automatically creating schedule lines for a certain kind of SD document (scheduling agreement, VA31) in a user exit. We are inserting directly into internal table XVBEP.

Creating those lines works. The values in VBAP and VBEP are exactly the same as if they were created manually, even though the confirmed quantity is only calculated when the document is saved. The requirements show up in MD04 for example.

However, for some reason index table VEPVG is not updated accordingly. Any ideas what we're missing?

Thank you

Roland

1 REPLY 1

roland_spindler
Participant
0 Kudos

Found it myself. We didn't maintain the client field when adding new lines to XVBEP. This didn't matter for database table VBEP, but it did matter for index table VEPVG for some reason...