You create a service ticket is SAP Cloud for Customer (C4C) and release it to SAP ERP. However, you notice that the RecipientPartyID is missing in the outgoing payload and the message fails in your ERP system with the following error:
'Error during processing of BAPI methods'
'Partner maintenance: Partner number missing for an entry with role'
SAP Cloud for Customer
Reproducing the Issue
Prerequisites: you have a working integration scenario with interface FollowupDocumentCreationRequestFromServiceRequestCreationOut between C4C and ERP.
Go to the Service work center.
- Navigate to the Tickets view.
- Open a ticket and add a customer and a contact.
- Click on the Release to ERP button.
- Go to the Administrator work center.
- Click on the Web Service Message Monitoring hyperlink under General Settings view.
- Search for the new outgoing message for interface FollowupDocumentCreationRequestFromServiceRequestCreationOut. The message successfully left C4C.
- Open the payload.
Observe the main contact party node: <RecipientPartyID>XXX</RecipientPartyID> tags are missing (where XXX represents the recipient party ID).
<PartyID schemeAgencyID=" " schemeAgencySchemeAgencyID=" " schemeAgencySchemeID=" " schemeID=" ">YYY</PartyID>
(where YYY represents the party ID and ABC represents the role code)
This behaviour occurs when you add a contact in the service ticket which is not assigned to the account (which is assigned to the same ticket). The ERP contact is mapped to the C4C contact relationship. If there is no relationship, it is not possible to determine the ERP contact ID. As the contact is not assigned to the account, valid ID mapping entry is not determined and the <RecipientPartyID> is missing in the payload.
You need to select a contact which is assigned to the respective account when creating/editing the service ticket.
service ticket, release to ERP, RecipientPartyID, Partner maintenance: Partner number missing for an entry with role, , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To