2009 Oct 13 5:57 AM
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
2009 Oct 13 6:50 AM
http://www.erpgenie.com/forum/viewtopic.php?f=17&t=13298
Edited by: krupa jani on Oct 13, 2009 7:51 AM
2009 Oct 13 7:17 AM
thanks,
the given bapi allows to change the ship-to-party, but it is not allowing to change the sold-to-party.
2009 Oct 13 7:30 AM
Hi,
Give the partner Role as 'LS' or 'KU'.
partnerchanges-partn_role = 'LS' or 'KU'.
Regards
2009 Oct 13 8:14 AM
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
2009 Oct 13 8:21 AM
2009 Oct 13 8:28 AM
thanks.
any sample source code using fm SD_SALES_PARTNER_MAINTAIN
Regards,
R.Jayakumar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |