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_SALESORDER_CHANGE

Former Member
0 Likes
1,336

Hi Friends,

i am using bapi (BAPI_SALESORDER_CHANGE) to change the sales order partner functions.

i am changing the sold-to-party, it will display the message.

Message: You cannot change the entry in partner function AG

please help, how to change the sold-to-party.

source code of changing the Sold-To-Party is:

partnerchanges-document = vbeln.

partnerchanges-itm_number = '000000'.

partnerchanges-updateflag = 'U'.

partnerchanges-partn_role = 'AG'.

partnerchanges-p_numb_old = old_customer_code.

partnerchanges-p_numb_new = new_customer_code.

partnerchanges-refobjtype = 'BUS2032'.

append partnerchanges.

Regards,

R.Jayakumar

Hi Friends,

i am using bapi (BAPI_SALESORDER_CHANGE) to change the sales order partner functions.

i am changing the sold-to-party, it will display the message.

Message: You cannot change the entry in partner function AG

please help, how to change the sold-to-party.

source code of changing the Sold-To-Party is:

partnerchanges-document = vbeln.

partnerchanges-itm_number = '000000'.

partnerchanges-updateflag = 'U'.

partnerchanges-partn_role = 'AG'.

partnerchanges-p_numb_old = old_customer_code.

partnerchanges-p_numb_new = new_customer_code.

partnerchanges-refobjtype = 'BUS2032'.

append partnerchanges.

Regards,

R.Jayakumar

6 REPLIES 6
Read only

Former Member
0 Likes
1,095

http://www.erpgenie.com/forum/viewtopic.php?f=17&t=13298

Edited by: krupa jani on Oct 13, 2009 7:51 AM

Read only

0 Likes
1,095

thanks,

the given bapi allows to change the ship-to-party, but it is not allowing to change the sold-to-party.

Read only

Former Member
0 Likes
1,095

Hi,

Give the partner Role as 'LS' or 'KU'.

partnerchanges-partn_role = 'LS' or 'KU'.

Regards

Read only

0 Likes
1,095

Thanks,

when i am using the partner role as 'KU'. then the below error message is displayed

Error Message:

Partner type KU is not permitted

Regards,

R.Jayakumar

Read only

Former Member
0 Likes
1,095

Hi

Try function module

SD_SALES_PARTNER_MAINTAIN.

Thanks

Read only

0 Likes
1,095

thanks.

any sample source code using fm SD_SALES_PARTNER_MAINTAIN

Regards,

R.Jayakumar