Hi Experts,
Let me share my experience and 'How to' while creating OData Service for CDS View with Parameters.
Disclaimer:
I am not sure whether the steps i will be explaining is the right one but i would like to share how i did it.
Step 1:
Add the Package to Eclipse Project Explorer and create a DDL Source .
Step 2:
Define a sample view with Parameter and Activate it.
Anotation OData.publish will expose the CDS View as OData Service.
Step 3:
Add the Service using the /iwfnd/miant_service.
Step 4:
Get the metadata and find out the entitySet of an entity without a
sap:parameter
Step 5:
Execute the URL as shown below
voila thats the result...
Open to comments and anybody can edit appropriately.
Happy Coding
Vishnu