Symptom
- Attempting to expose cost rates information from SAP S/4HANA through standard APIs returns no values.
- API in question: Overview | Cost Rate | SAP Business Accelerator Hub
- Error log includes: Gateway error: Invalid key predicate
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Access Communication Arrangement and locate API_COST_RATE.
- Attempt to retrieve cost rates using the provided API links.
Cause
Wrong API URL configuration resulting in a syntax error.
Resolution
Refer to the sample sandbox API in the "Try Out" section of the Cost Rate API documentation (Overview | Cost Rate | SAP Business Accelerator Hub) for possible API URL links' syntax.
Update the affected API URL links based on the samples in the Try Out section.
See Also
KBA 1797736 - SAP Gateway Troubleshooting Guide
KBA 2400124 - Gateway error: Invalid key predicate
API Documentation: Overview | Cost Rate | SAP Business Accelerator Hub
Keywords
odata api, cost rates, actual cost rates, syntax error, api configuration, sap s/4hana cloud public edition, API_COST_RATE, API_FCO_COST_RATE_SRV, CE_COSTRATE_0001, OData v4, deprecated API, error code /IWCOR/CX_OD_URI_SYNTAX_ERROR, SAP Gateway Error Log, API URL syntax , KBA , CO-FIO-CCA-MD-2CL , Master Data (Public Cloud) , Problem
SAP Knowledge Base Article - Public