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.
Showing results for 
Search instead for 
Did you mean: 

How to copy business partner in VA01 automatically

0 Kudos

Hi experts,

Here's the problem I'm facing:

When creating/changing sales order, if user input 'WE' partner in the sales order header, then should copy it as 'Z3' partner automatically. I tried coding in the user-exit 'USEREXIT_MOVE_FIELD_TO_VBAK' and then append to internal table XVBPA. I debuged the user-exit, although the data append to XVBPA successfully, but when back to screen, the record does not exit in the list of business parner. So I'm wondering whether the user-exit I used is not exact position or there might be some update flags should be set in XVBPA.

Thanks a lot!



Former Member
0 Kudos


U can use customer exit for change partner role.


SD Customer functions for resource-related billing

function module.

EXIT_SAPLV46H_002 Customer Function for Partner Changes

In above function module u have tables parameters to chnage partner .

I think its solve ur problem..Try it

Thanks & Regards


0 Kudos

Hi Gupta,

I tried your solution, but it seems failed. Actually I want handle the user-exit when I input NEW partner function (ie. 'WE') in the PARTNER TAB of sales order header(transaction VA01/VA02). Then there should be another partner function 'Z3' will be copied from WE automatically. I tried to use subroutine 'USEREXIT_MOVE_FIELD_TO_VBAK' in the program SAPMV45A, to append the copied record to XVBPA, but it seems does not work. So please give me a hand if you have good idea. Thanks a lot