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: 

Changing both header and item data of contract

Former Member
0 Kudos

Hi Experts,

For Contracts VA41/VA42, we want to change both header and item level data through USEREXIT_SAVE_DOCUMENT_PREPARE exit. Say to change Header(VBAP) & Item values(VBAK) values what i have to do...

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

Use userexit i USEREXIT_MOVE_FIELD_TO_VBAK & USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ.

5 REPLIES 5

amit_khare
Active Contributor
0 Kudos

Use userexit i USEREXIT_MOVE_FIELD_TO_VBAK & USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ.

0 Kudos

According to you, can i change VBAP and VBAK directly their?

Former Member
0 Kudos

Hi,

there are two Structures XVBAP and XVBAK.

you can use that and use modify command to Change header data and Item data.

Regards

Sandipan

0 Kudos

Hi Sandipan,

Thanks for your Quick reply. I observed in Userexit_move_field_to_vbap routine the newly added item record is not in XVBAP. I think, we have to change values in VBAP structure and after this userexit_move_field_to_vbap routine changed value will be updated in XVBAP as new item.

0 Kudos

Hi RK,

Yes In Userexit_move_field_to_vbap you have to do that.

But in USEREXIT_SAVE_DOCUMENT_PREPARE you can get the newly added item records in XVBAP

Regards

Sandipan