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

BAPI add partner function to sales order header

Former Member
0 Kudos
2,170

Hi experts,

Iam using BAPI_SALESORDER_CHANGE to add partner function to the sales order header, the problem is i cant make it work, how do i pass the values to the parameter 'PARTNERS'.

thanks! points will be rewarded

4 REPLIES 4
Read only

Former Member
0 Kudos
575

pass the below values to the partner table based on teh foll. query.

select *

from KNVP

into table gt_knvp

where kunnr = SO_customer

and VKORG = so_org

and VTWEG =so_dist

and SPART = so_div.

will get all patrnet functions which are defined under the customer.

loop at gt_knvp.

PARTNERS-PARTN_ROLE = gt_knvp-kunn2

PARTNERS-PARTN_NUMB = parvv

append partners.

endloop.

Read only

0 Kudos
575

Hi,

If you want to change the Partner details then pass the details to the table PARTNERCHANGES not PARTNERS.

Hope this will work.

Thanks and Regards

Sowmmya VB

Read only

former_member195698
Active Contributor
0 Kudos
575

Check the Link.

It contains the details with same program.

Regards,

Abhishek

Read only

0 Kudos
575

How to delete an existing partner in sales order using this BAPI?