on 08-26-2016 5:57 PM
Hello Friends,
I have created a ODATA SERVICES based on easy Query.But whenI run the URL for metadata. It gives runtime error because it needs to pass Input parameter.
I dont know how to pass Input parameter in odata created based on Query. My Bex Query has 1 Input variable which needs to be passed at run time.
Please help to resolve this Issue.
Thanks,
Priyanka
Hi Priyanka,
For fetching the metadata you do not need any input parameter.
Service Document URL and Metadata Url should work properly if your service is created successfully.
What is the runtime error that you are getting while fetching metadata?
Thanks & Regards,
Mohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
You would see a separate entity set in the metadata for you input variable. The properties of this entity should have the annotation sap: parameter= "mandatory” or sap: parameter= "optional”.
In the Service document there would be a href attribute mentioned for the corresponding QueryParameter Entity.
Your url should look like
http://<host>:<port>/sap/opu/odata/sap/<ServiceName>/<href attribute value>(Value In your case the value of ZDATE1)/Results
For more information, you can use the blog
Thanks & Regards,
Mohan
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.