Hi,
I'm using HDB from Cal.sap.com services and I created simple .xsodata file in one of my package to expose content of the table as a service and experience some issues with privileges. Been troubleshooting this issue for 2 days now and it is still not resolved. Any help would be highly appreciated.
I can browse content of the below URL without no issue and also view the metadata. But when I query for the Entity http://saphana/8000.xxxxxx .xsodata/DETAIL , I receive the following message:
Service exception: insufficient privilege.
ERROR [SQL-258] insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:3389 exception 1: no.71000258 (ptime/query/checker/query_check.cc:3389) Not authorized NO exception throw location recorded. Stack generation suppressed.
As per the suggestion in other threads, I tried then to build up a .hdbrole file with the following content:
role MYROLE {
catalog sql object "MYPACKAGE."MYTABLE" : SELECT,UPDATE,INSERT,DELETE;
}
But when i try to activate the role, I get the error message.
"insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:3389".
I also tried executing CALLl "HCP"."HCP_GRANT_ACTIVATED_ROLES". in the project explorer sql space. Even this statement runs into error.
Could you please help how to proceed further ?
Regards,
Naresh