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: 

Modify vebp-ezeit using user exit

ravi_rajput
Participant
0 Kudos

HI I tried updating vbep ezeit using userexit_save_document_prepare.

Its working fine most of the times , Have user UPDKZ as U wherever i am changing EZEIT in XVBEP.

But sometimes 1 out 100 it throws an error V1 506 Schedule line &1 &2 is missing in table YVBEP

I am not able to understand or figure out why it is throwing the error. Very

tough to replicate the error.

PS: I have not modified YVBEP table in the exit. Is it because of that ? DO i need to change VBEP structure in this exit ? Any

other exits that might help ?

Any help will be appreciated.

1 ACCEPTED SOLUTION

SimoneMilesi
Active Contributor
0 Kudos

When you UPDATE a row in XVBEP, the "original" row has to exist in YVBEP.

So the logic is

  1. read xvbep
  2. if xvbep-updkz is initial
    1. append xvbep to yvbep
    2. change fields you want in xvbep and set xvbep-updkz = 'U'
    3. modify xvbep
  3. else
    1. change fields you want in xvbep and set xvbep-updkz = 'U'
    2. modify xvbep

in the ELSE we do not fill YVBEP because when SAP set updkz, manage automatically YVBEP

BR

2 REPLIES 2

SimoneMilesi
Active Contributor
0 Kudos

When you UPDATE a row in XVBEP, the "original" row has to exist in YVBEP.

So the logic is

  1. read xvbep
  2. if xvbep-updkz is initial
    1. append xvbep to yvbep
    2. change fields you want in xvbep and set xvbep-updkz = 'U'
    3. modify xvbep
  3. else
    1. change fields you want in xvbep and set xvbep-updkz = 'U'
    2. modify xvbep

in the ELSE we do not fill YVBEP because when SAP set updkz, manage automatically YVBEP

BR

0 Kudos


Hi Simone,

Now i am getting the error number V1 -322 ,

Incorrect index structure for table IVBEP1.

Do we need to modify the IVBEP1 structure also ?

Please help if you have any idea about it !