Application Development and Automation 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: 
Read only

Changing the Partner Function using User Exits

Former Member
0 Likes
1,547

Hi experts,

I have a problem here in updating the partner functions (field KUNNR) of a seles order, particularly the sample ship-to.

I need to change the partner function of a sample line item only (free goods line item e.g item number 11).

I used the user exit USEREXIT_MOVE_FIELD_TO_VBAK of transaction VA02 in Include MV45AFZZ and updated the table XVBPA.

But what happens is not only the partner function of the sample line item is change, but also the sample ship-to of regular item (item number 10) and the sample ship-to of the header .

Another one, is that eventhough I already modified the name/description of the partner (field NAME1) in the table XVBPA, it does not take effect.

As a summary:

Update the partner function and its description of sample line item only.

Can anyone help me please?

Points will be rewarded for helpful answers...

Thanks...

4 REPLIES 4
Read only

Former Member
0 Likes
873

It will not change when use xvbpa ,you need to update adrc table ,get the adrnr number from xvbap ,read the data in adrc table and change the data in adrc table.

now it will change the partner function details

Read only

Former Member
0 Likes
873

Hi Seshu,

Thanks for your response. It really helped me a lot.

I can now change the Partner details.

But I still have one problem, what I need to change is only the partner profile of the sample item (free goods) specifically the sample ship-to but Modifying the table XVBPA will result to the changing of the Sample Ship-to of the Header data and the Regular item...

Am I modifying the right table? or there is another internal table that i should modify instead of XVBPA?

Thanks...

Read only

0 Likes
873

Hi Salem,

I think there is no other table except XVBPA

Try to modify XVBPA and see the results ,if not let me know

Thanks

Seshu

Read only

Former Member
0 Likes
873

Hi Seshu,

I already modified XVBPA and, just like what i have said, the change is successfull. But the problem is, the requirement is only to change the partner function of the sample ship-to of the free goods item (item 11). By updating the XVBPA, not only the free goods partner function and details are updated, but also the sample ship-to of the header and the regular material item( item 10).