SAP Business Technology Platform (SAP BTP) offers a comprehensive cloud environment for developing, running, and managing SAP applications. One of the most popular use cases on SAP BTP is deploying SAP-UI5 applications — modern, responsive web apps built using SAP’s UI5 framework.
This article provides a step-by-step guide to deploying SAP-UI5 applications on SAP BTP, covering the essential tools and best practices to help developers deliver their apps efficiently to the cloud.
Deploying SAP-UI5 applications on SAP BTP provides several benefits:
Before deployment, ensure you have:
cf CLI and UI5 CLI.Ensure your UI5 application is production-ready:
Build and bundle the UI5 app using the UI5 CLI:
ui5 build --all
The build process generates a dist folder with optimized static files.
Create a manifest.json and neo-app.json or xs-app.json configuration files if needed for routing and destination setup.
mta.yaml)In SAP BTP, multi-target applications (MTA) are used to deploy composite apps. Create an mta.yaml file in your project root to describe your application modules and resources.
Example mta.yaml for UI5 app deployment:
ID: ui5app
_schema-version: "3.2"
version: 1.0.0
modules:
- name: ui5app
type: html5
path: dist
parameters:
disk-quota: 256M
memory: 128M
provides:
- name: ui5app_content
properties:
url: ${default-url}
resources:
- name: html5_runtime
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo-runtime
service-plan: standard
This descriptor instructs SAP BTP on deploying your UI5 app as a static HTML5 module.
Use the MBT (MTA Build Tool) or SAP Business Application Studio to build the .mtar archive.
mbt build
This command packages your application and resources into a deployable .mtar file.
Log in to Cloud Foundry and deploy the archive:
cf login -a https://api.<region>.cf.cloud.sap --sso
cf target -o <your_org> -s <your_space>
cf deploy mta_archives/ui5app_1.0.0.mtar
<region>, <your_org>, and <your_space> with your SAP BTP details.cf deploy command uploads and deploys the application.Once deployment is successful:
SAP Business Application Studio simplifies deployment with integrated tools:
ui5 build).Deploying SAP-UI5 applications to SAP BTP allows enterprises to leverage cloud benefits such as scalability, security, and integration with SAP services. By following this structured deployment process — preparing your app, creating an MTA descriptor, building the archive, and deploying via Cloud Foundry — developers can efficiently deliver robust UI5 applications to users worldwide.
With tools like SAP Business Application Studio and SAP Cloud CLI, the deployment process is streamlined and accessible to developers of all skill levels.