cancel
Showing results for 
Search instead for 
Did you mean: 

XS oData and Multitenancy

andrefernandes
Participant
0 Kudos

Hi experts,

We are developing applications with Fiori Elements that consumes both oData (for List/Object Application) and XS oData (for Overview Page and Analytical Page), which are going to be used with multiple tenants.

For oData, we can extract the tenant information from the user session and in Java we simply query values based on a "tenant id" column.

However, I couldn't find an equivalent method for XS Classic. What is the preferred way to deal with XS oData and multi-tenancy?

I am using SAP HANA Web-based Development Workbench and Eclipse (with Cloud Integration tools) to develop the calculation views and expose them. We currently don't use Cloud Foundry.

Best regards,

André

0 Kudos

Hi Andre,

I have the very same question.

Java gives you Tenant Context API through which you can get the tenant ID. But how is this being done in OData or XS classic is a mystery to me. I've checked the XS classic API library but there's nothing related to tenant context.

Have you managed to find the answer?

Thanks & Regards
Peter

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member247294
Contributor
0 Kudos
SergioG_TX
Active Contributor
0 Kudos

in XS classic, you could query the view/table in various ways:

1) would be to call a stored procedure and let it do the select query based on your condition

2) if you are reading from a table specifically, you could use XSDS (xs data services) https://help.sap.com/http.svc/rc/0422944cf5554917b5ac2c3ebf9f1974/2.0.00/en-US/sap.hana.xs.libs.dbut...


for other XS classic API operations, here is the documentation page

https://help.sap.com/doc/3de842783af24336b6305a3c0223a369/2.0.01/en-US/index.html?index.html