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

Updating SO Header and Item Data using 'BAPI 'BAPI_SALESORDER_CHANGE'

Former Member
0 Likes
1,234

Hi,

I want to update Partner corresponding to Partner Function of Sales Order from input file and output type using BAPI 'BAPI_SALESORDER_CHANGE' Please help me to know what are the parameteres I have to use in BAPI.

Thanks in Advance,

Prasad J V V.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
963

HI,

IF you want to change the partners at header level just do the same above procedure but in that just don't mention the item number. keep this field empty.

I think it works out for you

Reward me with points if it is useful

Thanks,

Prasanna

Hi,

I want to update Partner corresponding to Partner Function of Sales Order from input file and output type using BAPI 'BAPI_SALESORDER_CHANGE' Please help me to know what are the parameteres I have to use in BAPI.

Thanks in Advance,

Prasad J V V.

4 REPLIES 4
Read only

Former Member
0 Likes
963

Hi,

u have to use These Parameter

SALESDOCUMENT

ORDER_HEADER_IN

ORDER_HEADER_INX

RETURN

ORDER_ITEM_IN

ORDER_ITEM_INX

PARTNERS

PARTNERCHANGES

PARTNERADDRESSES

regards

Sandipan

Read only

0 Likes
963

Hi Sandipan,

The parameters 'partners' and 'partnerchanges' are SO item parameters, but I want to change the Partner in SO header. How can I use these parameters?

I checked 'ORDER_HEADER_IN' and 'order_header_inx' which are the parameters of SO header, but I couldn't found any fields related to partners in these.

Please let me know if any solutions.

Thanks,

Prasad JVV.

Read only

Former Member
0 Likes
963

Hi,

Use put the data as shown below in mentioned parameters

Import parameter:

salesdocument : 'sales order number'

order_header_inx-updateflag : U

Tables:

Partner changes:

Partner changes-document = 'sales order number'

Partner changes-Itm_number = 'item number'

Partner changes-updateflag = 'U'

Partner changes-Partner role = 'BP' if bill to party 'PY' if payer and 'SH' if ship to party

Partner changes-p_number_old = 'Old partner number'

Partner changes-p_number_new = 'New partner number'.

Reward points if you find it usefull

Thanks,

Prasanna

Read only

Former Member
0 Likes
964

HI,

IF you want to change the partners at header level just do the same above procedure but in that just don't mention the item number. keep this field empty.

I think it works out for you

Reward me with points if it is useful

Thanks,

Prasanna