on 02-08-2017 7:08 AM
Hi All,
Can we create a synonym for classic table and then expose this synonym via odata service?
Thanks,
Mahesh
I tried that case today on a HXE 2.0 system.
Although I would have assumed that it would work w/o issues I got following result. I set up a "connection" (incl. all grants for the technical/application) user to a non HDI container schema using a user provided service. For a table in that schema a synonym is defined via an .hdbsynonym artifact.
Creating an xsodata service on top of that schema works from a technical perspective w/o issues, but calling the odata service results in a 404 error from the odata framework with the message "No data found for <synonym name> table." (-> the table contains values can be accessed e.g. in an SQL console via the synonym).
If a CDS view is created using that synonym and the CDS view is exposed using a xsodata service the odata service works w/o any issues and provides the data. Due to the usage of a view, the usage is limited to read-only scenarios of course.
For me it seems that there is a gap in the sap-xsodata node module implementation which does not cover the direct usage of a synonym for objects available via user defined services in a 100% way.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.