Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

Consume data via Odata services using parameters in Abap CDS view.

$
0
0

Hello,

 

   I have created simple ABAP CDS view using table sflight with parameter Conn_ID. Then i have generated Odata service.

 

I am getting the error message "Invalid Key Predicate" when i tried to publish the service in Portal using the Parameter.  Find the attached file.

 

 

@OData.publish: true

 

define view Zcds_Para_Odata

    with parameters P_Conn_ID : S_CONN_ID

as select from sflight {

 

 

   key sflight.carrid,

   key sflight.connid,

   key sflight.fldate

   

    }

    where connid = $parameters.P_Conn_ID

 

 

Please Suggest me.

 

Thanks & Regards

Arun


Viewing all articles
Browse latest Browse all 831

Trending Articles



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