Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Consuming Calv. Views in ODATA services with In/Out Parameters

$
0
0

Hi All,

 

I have created a Calc. View with input parameters CARRID, CONNID

and all fields of SFLIGHT as output parameter  as below,

Calc. View.PNG

I am able to see the data as expected by passing the required inputs as shown below,

View_Inputs.PNG

View_Output.PNG

I have to consume this view in ODATA service, for that I have written below service,

 

service

{

"AB_BPS::CALC_VIEW" as "SFLIGHT"

keys generate local "CARRID"

parameters via entity "Input";

}

 

URL is been generated as - https://j1tbca70991a.us1.hana.ondemand.com/AB_BPS/AB_XS_Project/AB_Service.xsodata

 

Issue: I am unable to pass the input values as required. I'm getting an error message as shown below,

when I tried to add extension as /Inputs('CARRID'='AA','CONNID'='0017') to my URL.

 

URL_Error.PNG

 

Queries:

1. Correct syntax to consume views with parameters in ODATA service.

2. Extension that I need to use in URL

 

I have searched a lot, but did not find an helpful solution. Please help me,

Thanks in advance,

Arun.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>