SAP Knowledge Base Article - Public

3730332 - Custom fields in customer core view not returned by business partner api.

Symptom

  • Custom fields are created in the Customer Core View business context and enabled/published for the A_Customer and I_Customer views.
  • When running the Business Partner OData API (entity A_Customer), the custom fields are not included in the response, and their values cannot be read.
  • In the View Browser app, the custom fields appear in the A_Customer and I_Customer views.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Run the Business Partner OData API for entity A_Customer (refer to: API_BUSINESS_PARTNER - A_Customer).
  2. Observe that the custom fields from the Customer Core View are not present in the API response.

Cause

The "Odata extension model for Business Partner API" was not enabled, so the custom fields were not exposed by the API.

Resolution

  1. Enable the service "Odata extension model for Business Partner API".
  2. Run the API for entity A_Customer again and confirm that the custom fields are returned in the response.

See Also

Keywords

custom fields, customer core view, api_business_partner, a_customer, i_customer, odata extension model, fields not returned, business partner api, key user extensibility, s/4hana cloud, odata exposure, view browser, enable usage, api response, extensibility model , KBA , LO-MD-BP-ODT , OData Service for Business Partner , Problem

Product

SAP S/4HANA Cloud Public Edition all versions