SAPUI5 and Fiori Tools Part 7: Deployment to BTP and ABAP
Preview · a free account unlocks the full lesson
Deploy a SAPUI5/Fiori app to production: build it, deploy to the ABAP repository or to SAP BTP, register it in the Fiori launchpad with tiles and roles, and manage transports and versions.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 6 built and tested the app. This final part brings it to actual users.
The first step is the build. Running "ui5 build" (or the build step of the npm scripts generated by Fiori tools) creates a dist folder containing minified files, Component-preload.js, and the i18n bundles. It's the build result that should always be deployed, never the source folder.
Deploying to the ABAP repository suits on-premise or private-cloud systems. Fiori tools' "npx fiori add deploy-config" command, with ABAP chosen as the target, creates a ui5-deploy.yaml file holding the system URL, the BSP application name (for example ZPURCHREQ), the package, and the transport request.
Running "npm run deploy" then uploads the build as a BSP application — the backend program /UI5/UI5_REPOSITORY_LOAD offers an alternative way to upload it.
Because the app sits in a package and a transport, it moves to QAS and PRD the same way any ABAP object does, via the transport; the OData service and binding, roles, and launchpad content all need to be transported alongside it.
Deploying to SAP BTP on Cloud Foundry works differently. The Fiori tools deploy config for Cloud Foundry creates an MTA (mta.yaml) containing the HTML5 app, the HTML5 app repository, and, where managed, the approuter configuration. The MTA gets built with mbt build and deployed with cf deploy, or more simply with "npm run deploy". Backend access goes through BTP destinations, reaching S/4HANA via the Cloud Connector for on-premise systems, and the content then appears in SAP Build Work Zone or the launchpad service.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.