Enabling Multitenancy and Adjusting the App Router

Objective

After completing this lesson, you will be able to deploy a multitenant SAP CAP application with an integrated SAP Fiori Elements app.

Step 4: Enabling Multitenancy and Adjusting the App Router

Develop an Application in SAP Build Code. Step 4: Enable multitenancy and adjust the app router.

To prepare for deploying a multitenant SAP CAP application with an integrated SAP Fiori Elements app, follow these steps:

  1. Enable Multitenancy
  2. Enable External Services in a Multitenant Application
  3. Adjust the app router

1. Enable Multitenancy: Deploying a CAP application as a SaaS (Software as a Service) solution enables multitenant accessibility within a shared infrastructure. This model ensures data isolation, customization, security, and scalability for each tenant while optimizing resource utilization. It is widely used in cloud-based enterprise applications, enabling multiple customers or organizations to share the same application instance while maintaining separate data and configurations.

2. Enable External Services in a Multitenant Application: By default, multitenant applications don't expose destination or other services to subscribers. To enable subscribers to access external services via destination services, add the destination services to the SAP BTP SaaS Provisioning Service dependencies. You can reference Enabling Multitenancy | SAP Help Portal for more information on how to do this.

3. Adjust the app router: Upon enabling multitenancy, a standalone app router is enabled too.

The standalone app router is a Node.js-based, independently deployed component that centralizes routing, authentication, and tenant-specific configurations. It is designed for scalability and flexibility, making it ideal for complex multitenant applications.

Ensure that the app router settings are configured correctly.

This video shows you how to carry out each of these steps.

Summary

  • Multitenancy enables secure, scalable, and isolated access for multiple tenants within a single CAP application instance.

  • External services must be explicitly enabled for subscribers to access them in a multitenant environment.

  • The standalone app router manages routing, authentication, and tenant-specific settings for multitenant applications.

  • Proper configuration of app router files and settings is essential for successful multitenant deployment.