2015 Oct 13 4:29 PM
Hi Experts,
I'm able to update partner function by assigning new customer based on sales document using BAPI_SALESORDER_CHANGE.
But how to insert a partner function to sales document?
Please provide a bapi or function module.
Regards,
Ashok
Hi Experts,
I'm able to update partner function by assigning new customer based on sales document using BAPI_SALESORDER_CHANGE.
But how to insert a partner function to sales document?
Please provide a bapi or function module.
Regards,
Ashok
2015 Oct 13 4:55 PM
Have you tried using the PARTNERS parameter of the BAPI you mention?
2015 Oct 13 6:23 PM
2015 Oct 13 5:22 PM
Hi,
you can insert the partner in the following way..
add your partner function to the Partner table..
I_BAPIPARNR-PARTN_ROLE = 'ZD'.
I_BAPIPARNR-PARTN_NUMB = P_KUNNR.
APPEND I_BAPIPARNR.
I_BAPIPARNRC-DOCUMENT = F_VBELN.
I_BAPIPARNRC-UPDATEFLAG = 'I'.
I_BAPIPARNRC-PARTN_ROLE = 'ZD'.
APPEND I_BAPIPARNRC.
thanks!!
2015 Oct 13 6:48 PM
Hi Ashok
You need to fill the following tables in the BAPI_SALESORDER_CHANGE
PARTNERS STRUCTURE BAPIPARNR OPTIONAL
PARTNERCHANGES STRUCTURE BAPIPARNRC OPTIONAL
PARTNERADDRESSES STRUCTURE BAPIADDR1 OPTIONAL
As Aditya's example you need to update name and address and partner role
Both Partners and partnerchanages table should be inserted
Regards,
Venkat
2015 Oct 13 8:55 PM
If i do as above I'm getting below Error in BAPI
'Partners from account group 0001 are not permitted for partner function AC'
2015 Oct 14 5:51 AM
That means it is working.
It is only a configuration issue.
Please consult with SD Consultant to define the appropriate account group in XD02.
Regards,
Venkat
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |