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: 

why there are two structures declared say xvbap and yvbap in sapmv45a?

Former Member
0 Kudos

hi all,

i have not done user exits before...i found that there are always two structures sy xvbap and yvbap ,xvbep yvbep in sapmv45a? Can you tell me the reason why two structures are declared in sap?

1 ACCEPTED SOLUTION

former_member239282
Active Participant
0 Kudos

In most of the internal tables within SAPMV45A there is a field called UPDKZ that is used to control what happens to the record. This is espicially important in change mode. This field has to be set to:

'D' - Delete

'U' - Update

'I' - Insert.

It is also important with the user exits to manage both the X and Y internal tables. For example YVBAP should contain the data before the change and XVBAP should contain the record with the updated data.

Also, if you are trying to delete an item, you probably need to make sure that all of the data for that item is deleted - vbap, vbep, vbpa, etc.

If this may be useful rewards points are appreciated

2 REPLIES 2

former_member239282
Active Participant
0 Kudos

In most of the internal tables within SAPMV45A there is a field called UPDKZ that is used to control what happens to the record. This is espicially important in change mode. This field has to be set to:

'D' - Delete

'U' - Update

'I' - Insert.

It is also important with the user exits to manage both the X and Y internal tables. For example YVBAP should contain the data before the change and XVBAP should contain the record with the updated data.

Also, if you are trying to delete an item, you probably need to make sure that all of the data for that item is deleted - vbap, vbep, vbpa, etc.

If this may be useful rewards points are appreciated

0 Kudos

thanx for your ans..my query is answered..