Skip to Content
Technical Articles
Author's profile photo Philip MUGGLESTONE

Hands-on Video Tutorials for Developing Multitenant Business Applications

MAJOR UPDATE September 2020: The entire video tutorial series has been revised and brought up to date. It now includes an example of “schema separation” and several other topics that were not in the original series such as dependencies for reuse services, creating routes during subscription via the CF API, and using a custom domain. Click here to watch the new series.

Hi,

As a partner or application provider, you can develop and run multitenant business applications in SAP Cloud Platform and share them with multiple consumers (or tenants) simultaneously. Each consumer accesses the application through a dedicated URL that identifies their tenant. This allows you to separate data securely for each tenant whilst optimizing resources by sharing them across tenants. It also allows you to update applications for all tenants efficiently in a single step.

You can find out more in the following blogs:

But have you tried this approach “hands-on” and did you know it’s available to test using the free trial?

We’ve just published a new tutorial series covering Multitenant Business Applications in SAP Cloud Platform which you can access here: Multitenant Business Applications in SAP Cloud Platform Playlist

Tutorials cover all aspects of creating and managing multitenant business applications in SAP Cloud Platform including developing, deploying and registering multitenant business applications, consumer/tenant on-boarding and off-boarding, the RESTful API, the Command Line Interface (CLI), database persistence, as well as uninstallation.

So whether you’ve already got access and want to get going or you’re simply interested in seeing exactly how to get started these videos will be of use.

You can access the tutorials directly as follows:

The example applications used in the video tutorials are posted to GitHub: MTApp and bookshop-js.

Kudos and special thanks to Sandeep who helped us out enormously in getting up to speed on this topic!

If you’re new to SAP Cloud Platform itself then you might also want to check out our onboarding video tutorial series which should hopefully get you up to speed pretty quickly.

Good luck in creating your own multitenant business applications and let us know your feedback in the comments section below!

Philip

The SAP HANA Academy team publish hands-on tutorial videos on all sorts of SAP-related technologies to our YouTube channel. Don’t be fooled by the team name – we’re not only here to spread technical knowledge for HANA – although that’s a large part of what we do!

For the full list of blogs, see Blog Posts – by the SAP HANA Academy

Assigned tags

      18 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      UPDATE 26APR19: Added link to new tutorial video that covers application authorizations.

      Authorizations

      Author's profile photo Mihir Jha
      Mihir Jha

      Cool stuff!

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      UPDATE 23MAY19: Added 6 new tutorial videos covering database persistence via the discriminator column approach in detail.

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Andrew Lunde has just posted this blog documenting a custom approach to database persistence based on the schema separation method and it's a great read!

      Author's profile photo Ashish Singh
      Ashish Singh

      Hi Philip MUGGLESTONE,

      Thanks for this post and thanks to Andrew Lunde for the wonderful blogpost. It was a great read.

      Could you please share if we can expect a new video on this very topic of schema separation showing the recommended way to implement multi-tenancy at database persistence level by SAP HANA Academy?

      Thanks,

      Ashish

       

       

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Hi Ashish,

      Thanks for watching and reading and of course your question.

      Yes we do plan to publish videos to cover schema separation once SAP's recommended approach  has been formally documented.

      Thanks,

      Philip

      Author's profile photo Ashish Singh
      Ashish Singh

      Thanks Philip. Any tentative timeline if you are aware?

      Eagerly looking forward to the documentation and your videos, helpful as always!

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Hi Ashish,

      The entire video tutorial series has been revised and brought up to date. It now includes an example of "schema separation" and several other topics that were not in the original series such as dependencies for reuse services, creating routes during subscription via the CF API, and using a custom domain. Click here to watch the new series.

      Thanks,

      Philip

      Author's profile photo Satish Kumar Kara
      Satish Kumar Kara

      waiting for the schema separation persistence approach

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Hi Satish,

      The entire video tutorial series has been revised and brought up to date. It now includes an example of "schema separation" and several other topics that were not in the original series such as dependencies for reuse services, creating routes during subscription via the CF API, and using a custom domain. Click here to watch the new series.

      Thanks,

      Philip

      Author's profile photo Fouad Sebbane
      Fouad Sebbane

      Thanks for sharing!

      Is there meanwhile a preliminary timeline for the records on how the separation of DB schema works or is it not anymore a recommended approach?

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Best I can do is refer you to the published roadmaps for SAP Cloud Platform available here. Thanks. Philip

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Hi Fouad,

      The entire video tutorial series has been revised and brought up to date. It now includes an example of "schema separation" and several other topics that were not in the original series such as dependencies for reuse services, creating routes during subscription via the CF API, and using a custom domain. Click here to watch the new series.

      Thanks,

      Philip

      Author's profile photo Gordon Huang
      Gordon Huang

      Hi Philip, your videos through the SAP Hana Academy are very helpful. We are trying to migrate our SAPUI5 applications from WebIDE to BAS.  We managed to get source codes from our GitHub into BAS, and able to build applications based on the mta.yaml file, then deploy to cloud foundry app launch site.  However, we have trouble to run the applications locally. Our project has multiple modules including a commonly shared library module.  All modules except the common one are runnable in Cloud Foundry Fiori launchpad. Each application may need to consume multiple SAP Hana on-promise system ODATA services and other external restful services.  Local run failed to consume those services.  When I setup a simple project with just one destination service and following your video to create a local xsuaa service, then it worked fine in local run.  Can you give us suggestions how to make the local run in BAS work for multiple modules and destination services?  Thanks a lot.

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Hi Gordon,

      Thanks for the feedback and your question. Great timing because only yesterday we published a 3-part tutorial showing an optimized approach to "local" development of MTAs which may help in your scenario:

      Part 1

      Part 2

      Part 3

      The principle is to deploy the full MTA first to ensure all the modules & services are up and running.

      Then for each module that you'd like to run "locally" (the tutorials do this on a workstation using VS Code but BAS should work just fine too) use the cf default-env <APP> command to create a local default-env.json file containing config for all the dependencies (services) and intra-module "destinations".

      The default-env.json is read when you run the module "locally". That's automatic with @sap/approuter and @sap/hdi-deploy. With @sap/xsenv you need to make sure you use xsenv.loadEnv().

      Thanks,

      Philip

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      MAJOR UPDATE September 2020: The entire video tutorial series has been revised and brought up to date. It now includes an example of "schema separation" and several other topics that were not in the original series such as dependencies for reuse services, creating routes during subscription via the CF API, and using a custom domain. Click here to watch the new series.

      Author's profile photo Anil k
      Anil k

      Thanks Philip . Any reference to do the same with java backend instead of node js ?

      Author's profile photo Philip MUGGLESTONE
      Philip MUGGLESTONE
      Blog Post Author

      Hi Anil,

      Thanks for asking but no explicit plans to cover Java at this time.

      Thanks.