SAP Knowledge Base Article - Public

3658248 - Custom OData Service Limited to Maximum of 5000 Records Per Fetch

Symptom

  • Custom OData service is limited to a maximum of 5000 records per fetch.
  • When retrieving data from a custom OData API, the maximum number of records returned per fetch is limited to 5000.

Environment

SAP S/4HANA Cloud Public Edition

Cause

It is not possible to retrieve large volumes of records beyond the server-side $top limit of 5000 through a custom API, this limit cannot be increased.

Resolution

The only viable option is to consume the OData API using pagination parameters such as with $top/$skip/$count parameters or with splitting the data using filters or the pagination concept 

See Also

OData - skip, count issue - CommunityPost

Keywords

odata service, record fetch limit, $top, $skip, pagination, sap s/4hana public cloud, custom api, cds view, performance optimization, data retrieval, filters, sap business application studio , KBA , CA-UI5-FL-ADP-BAS , SAPUI5 Adaptation Project for SAP BAS , Problem

Product

SAP S/4HANA Cloud Public Edition all versions