Symptom
There is an error "BP role xxx still in use; deletion not allowed" when using the BP API to create a BP.
Environment
SAP S/4HANA Cloud Public Edition
Cause
In the payload the CTI flag for Role (roleListCompleteTransmissionIndicator) is set to true, but the customer role is not sent with the payload. Therefore, error message is correct. (customer role will be deleted if this role is not sent with payload, but deletion is not allowed)
Resolution
Add the xxx role to the payload when the roleListCompleteTransmissionIndicator is true.
Keywords
SOAP API, create BP, delete role, roleListCompleteTransmissionIndicator , KBA , LO-MD-BP-WS , Web Service for Business Partner , Problem