Skip to Content
0
Dec 21, 2022 at 08:35 AM

SAC: How to use Odata V4 with parameters, exposed from a S/4HANA CDS view

409 Views

Hello,

I'm trying to use an Odata V4 service with parameters to pull data from S4 in Sap Analytics Cloud.

The Odata was created from a CDS view, defined as follows :

image.png

I have exposed it as Odata V4 and V2.

Both versions produce correct results when I try them in a browser. That is <url>/<entity>(DaysBack=3)/Set

The V2 version works properly in SAC. All I had to do was to define it as "Freehand Query".

image.png

The V4 version fails.

image.png

image.png

Just to make sure, I have also exposed the same view but without parameters as an Odata4. SAC was able to pull the data witout any problems.

Is there anything I can do to fix the problem ?

Attachments

image.png (33.4 kB)
image.png (11.6 kB)
image.png (14.6 kB)
image.png (14.9 kB)