ERPClimb logoERPClimb
SAPUI5 and SAP Fiori Tools
RAP / CDS / ODataintermediate 8 min read

SAPUI5 and Fiori Tools Part 7: Deployment to BTP and ABAP

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

SAPUI5 and Fiori Tools Part 7: Deployment to BTP and ABAP — learning sheetFlow: Run "npx fiori add deploy-config" and choose ABAP → Enter system, BSP name ZPURCHREQ, package and transport → "npm run deploy"; check the BSP application in the backend → Create tile/target mapping and add it to a role; test with a test user. Key ideas: BUILD; DEPLOY TO THE ABAP REPOSITORY (ON-PREMISE / PRIVATE CLOUD); DEPLOY TO SAP BTP (CLOUD FOUNDRY); LAUNCHPAD INTEGRATION. Watch out: Deploy to DEV only; move to QAS/PRD via transports (ABAP) or pipelines (BTP).ERPClimb.com / RAP / LESSON 7/7 / LEARNING SHEETSAPUI5 and Fiori Tools Part 7: Deployment to BTP and ABAP1 · HOW IT FLOWS1Run "npxfiori adddeploy-config"…2Enter system,BSP nameZPURCHREQ…3"npm rundeploy";check the BSP…4Createtile/targetmapping and add…2 · KEY IDEAS EXPLAINEDBuild"ui5 build" (or the build step of npmscripts generated by Fiori tools) creates a distfolder: minified files, Component-preload.js, i18n…Deploy To The ABAP Repository…Fiori tools: "npx fiori adddeploy-config" → target ABAP; createsui5-deploy.yaml with system URL, BSP application…"npm run deploy" uploads the build as aBSP application (the backend program/UI5/UI5_REPOSITORY_LOAD offers an alternative…Deploy To SAP BTP (Cloud Foundry)Fiori tools: deploy config for Cloud Foundrycreates an MTA (mta.yaml) with the HTML5 app, theHTML5 app repository and (managed) approuter…Build the MTA (mbt build) and deploy (cf deploy) —or "npm run deploy".Launchpad IntegrationSemantic object + action (e.g.PurchaseRequest-manage) in the app's manifest"crossNavigation" inbound.On ABAP: a tile and target mapping in a catalog;the catalog in a business role; spaces and pagesfor layout. In S/4HANA Cloud / BTP: business…3 · REMEMBER · WATCH OUTRememberTwo main targets: ABAP repository (BSP application, transported likeABAP) or SAP BTP (HTML5 app repository).Fiori tools create the deploy configuration; "npm rundeploy" builds and deploys.Users need a launchpad tile/target mapping and a role — deploymentalone is not enough.!Watch outDeploy to DEV only; move to QAS/PRDvia transports (ABAP) or pipelines(BTP).4 · IN A REAL PROJECTA team deployed their app to QAS by re-running "npm run deploy" against the QAS system from adeveloper laptop. A week later, PRD contained a different app version than QAS, and nobody could say whichcode was live. They switched to the standard process: deploy only to DEV with a transport request, move the…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

Free account

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.