Skip to Content
0
Aug 02, 2019 at 01:35 PM

SAP CPI - CDS with parameters Odata consumption

860 Views

I´m trying to expose a OData service on CPI.

This Odata coming from a CDS view with parameters....

For READ operation, it´s ok.

For QUERY, CPI doesn´t accept parameters in ResourcePath.

The URL seems like that

https://<URL>/sap/opu/odata/sap/YY1_<ODATA-SERVICE>/YY1_<NAME>(P_1='<WHATEVER-VALUE>',P_2='<WHATEVER-VALUE>')/<RESULTNAME>?$top=1

I already read the sap note "2600276 - Exposing a CDS view with parameters as OData error code LCX_MISSING_PARAMETER"