07-10-2007 8:38 AM
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?
07-10-2007 8:44 AM
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
07-10-2007 8:44 AM
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
07-10-2007 8:50 AM