SAP Knowledge Base Article - Preview

2726463 - Fields Not Sorted Using $OrderBy in OData Reports

Symptom

You have built an OData query to retrieve report data, and you have used the operand OrderBy to sort the fields, however in the report results you can see that the data is not sorted.

For example: You are calling the report Invoice Volume via the following URL:

https://myxxxxxx.sapbydesign.com/sap/byd/odata/ana_businessanalytics_analytics.svc/RPCRMCIVIB_Q0001QueryResults?$select=CIPR_PROD_UUID,CIACBA_PRJ_UUID&$orderby=CDOC_UUID desc

And you would expect that the results are sorted by Invoice ID, in a descending order, however this is not the case.


Read more...

Environment

SAP Business ByDesign

SAP Hybris Cloud for Customer

Product

SAP Business ByDesign all versions ; SAP Cloud for Customer core applications all versions

Keywords

Odata, report, orderby, sorting, characteristic, ascending, descending, System query options '$orderby' are not allowed in the requested URI , KBA , AP-RC-ANA , C4C, ByD, Travel: Analytics Tools & Frameworks , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.