Symptom
The system throws the error "Enter ID Number" when performing the POST operation using the API_BUSINESS_PARTNER OData service.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- OData Query: https://myxxxxxx-api.s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner
- Execute the POST call for the Request Payload below:
<A_BusinessPartner>
<A_BusinessPartnerType>
<BusinessPartner/>
.
.
<to_BuPaIdentification>
<A_BuPaIdentificationType>
<BusinessPartner/>
<BPIdentificationType>YYYYYY</BPIdentificationType>
<BPIdentificationNumber/>
</A_BuPaIdentificationType>
</to_BuPaIdentification> - The system throws the error : "Enter ID Number"
Note:
In the above example:
xxxxxx represents the tenant URL of the system
YYYYYY represents the Identification type of the Business Partner
Cause
The error occurs because the BP Identification number is missing in the request payload.
Resolution
According to the SAP standard process for Business Partners, the Identification number cannot be left blank as it is the primary key field in the BUT0ID table, sending this field blank would cause inconsistencies with other tables that are related to it. The Business Partner Identification number is a mandatory field and must be included in the request payload.
Keywords
Identification Number, BPIdentificationNumber, Business Partner, R11/191, Enter ID Number, R11, 191, API_BUSINESS_PARTNER, OData , KBA , LO-MD-BP-2CL , Business Partners for Public Cloud , LO-MD-BP , Business Partners , Problem