简体   繁体   中英

Get data from on premise SQL server to Mobile App in SAP HANA Cloud Platform

I have installed cloud connector to a server that SQL is installed and i have a couple of databases.

I want to create a native Android app in SMP on SHCP in and use some of the data stored in my on premise SQL server.

Do i have to write an ODATA service provider? Does Cloud Connector provides data from DB as OData automatically?

I have exprerience from SMP 2.3 with MBOs but i dont understand how the new platform works. Is there a really helpful documentation/tutorial?

  1. To get data from on premise DB to HCP you could use EIM SDI, see blogs from Ben Hofmans . You can then either consume the tables as virtual tables or replicate them to HANA. See EIM Admin guide for supported DBs. You can also find some open source adapters from github

  2. Consume the virtual or replicated tables via XSodata service on top of the tables, or using cds- or calc views in between

Hope this helps

Do i have to write an ODATA service provider?

No, the only limitation is that you need to provide an HTTP-based API. Plain REST services or SOAP would work as well, for instance. You will need to provide OData in order to leverage the Offline enablement features, however. Christoph's suggestion of replicating and generating OData from HANA would be one valid approach. You could also use SAP Landscape Transform for the same purpose.

Does Cloud Connector provides data from DB as OData automatically?

No, SAP Cloud Connector works like a VPN tunnel between your cloud tenant and your on-premise systems. It does not have any API-related features.

Since OData is also backed by Microsoft, I would also assume that SQL Server supports ways of generating OData feeds from your database. This is not my home turf, but this post on generating WCF OData services might be relevant?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM