How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Total number of records for complex unmanaged query in RAP

calendar_today May 1, 2026 person rammel domain sap-api-management

In most of the examples from SAP (https://help.sap.com/docs/ABAP_PLATFORM_NEW/fc4c71aa50014fd1b43721701471913d/254f68c7d5374e94a88241b7ce3bd414.html), the handling of total record count when requested is quite straightforward since there is only a single table involved.

rammel_3-1777663580102.png

But there maybe some complex reporting scenarios where it is not practical to calculate the total since it will affect the performance. How do you usually handle the total calculation? Do you give a rough estimate of the total number of records or do you really calculate the total whenever it is requested?

The issue with providing a rough estimate is that the value that you pass will usually be reflected at the table header level.

rammel_0-1777663366249.png

 

open_in_new Read original post