Symptom
In a Business Partner, you assigned the Identification Type ABCDE having the Identification Category ZABCDE. Upon trying to delete the Identification data of Business Partner using the API_BUSINESS_PARTNER system throws the error.
where XYZ represents the Business Partner ID
PQR represents the Business Partner Identification Number
ABCDE represents the Identification Type
ZABCDE represents the Identification Category
xxxxxx represents the tenant URL of the SAP S/4HANA Cloud Public Edition system
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Perform the Delete operation on the Query
- https://myxxxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BuPaIdentification(BusinessPartner='XYZ',BPIdentificationType='ABCDE',BPIdentificationNumber='PQR')
- System throws the error:
Identification Category ABCDE does not exist
Or
- Perform the Delete operation with the following payload:
- https://myxxxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BuPaIdentification(BusinessPartner='XYZ',BPIdentificationType='ZABCDE',BPIdentificationNumber='PQR')
<?xml version="1.0" encoding="UTF-8"?>
<A_BuPaIdentification>
<BusinessPartner>XYZ</BusinessPartner>
<BPIdentificationType>ZABCDE</BPIdentificationType>
<BPIdentificationNumber>PQR</BPIdentificationNumber>
</A_BuPaIdentification>
System throws the error:
Resource not found for segment 'A_BuPaIdentificationType'
Cause
Identification Category and Identification Type has in general 1:N relationship. But is programmatically reduced to 1:1
Resolution
Rename your Identification Type the same name as corresponding Identification Category. As it is not possible to create more than one type for one category this will not be a restriction. Thereafter the delete request will be successful.
Keywords
103653, Define Identification Categories, 103654, Define Identification Types, API_BUSINESS_PARTNER, BuPaIdentificationType, resource, segment, Business Partner, BPIdentificationNumber, Identification Category, Identification Type , KBA , LO-MD-BP , Business Partners , Problem