06-04-2008 3:40 AM
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!
Zhengning
06-04-2008 11:35 AM
Hi,
U can use customer exit for change partner role.
V46H0001
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
Gupta............
06-05-2008 3:51 AM
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