SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Deploy the SAPUI5 App with Application FrontEnd Service

Deploy an already created SAPUI5 App using the new application frontend service cli tool "afctl".

Overview

🎓 beginner 15 min. HTML5BeginnerSapui5User Interface

You will learn

  • โœ”How to deploy an UI5 application to the Application Frontend with terminal or VS Code Integrated Terminal.
  • โœ”How to use afctl commands to deploy changes to an UI5 application
Shrinivasan Neelamegam S Shrinivasan Neelamegam November 17, 2025
Created by October 23, 2025
Contributors

Prerequisites

Prerequisites

Steps

Introduction

Application Frontend service lets you host and serve frontend applications. It serves as a single entry point for hosting web-based UI applications to extend SAP’s business solutions. The service provides tools for deploying and managing applications, serving static resources, routing backend calls to defined targets, and observability tools.


Step 1 Prepare the UI5 Project for Application Frontend
โ€”

  1. Update the manifest.json in the webapp folder with the following code.
JSON
{
    "_version": "1.12.0",
    "sap.app": {
        "id": "sap.ui.demo.tiles",
        "applicationVersion": {
            "version": "1.0.0"
        }
    },
    "sap.ui5": {
        "rootView": {
            "viewName": "sap.ui.demo.tiles.view.App",
            "type": "XML",
            "async": true
        },
        "dependencies": {
            "minUI5Version": "1.75.0",
            "libs": {
                "sap.m": {},
                "sap.ui.core": {},
                "sap.f": {}
            }
        }
    }
}

The version within applicationVersion will be reflected as the version of the deployed App.

  1. Create an xs-app.json file in the project root folder and add the following code
JSON
{
    "welcomeFile": "/index.html",
    "authenticationMethod": "route",
    "routes": [
        {
            "source": "^/resources/(.*)$",
            "target": "/resources/$1",
            "authenticationType": "none",
            "destination": "ui5"
        },
        {
            "source": "^/test-resources/(.*)$",
            "target": "/test-resources/$1",
            "authenticationType": "none",
            "destination": "ui5"
        },
        {
            "source": "^/logout-page.html$",
            "service": "app-front",
            "authenticationType": "none"
        },
        {
            "source": "^/index.html$",
            "service": "app-front",
            "cacheControl": "no-cache, no-store, must-revalidate"
        },
        {
            "source": "^(.*)$",
            "target": "$1",
            "service": "app-front"
        }
    ]
}

This code is a routing configuration for a SAP UI5 application that sets /index.html as the welcome file and uses route-based authentication. It forwards requests for resources and test-resources to the ui5 destination without requiring authentication, serves /logout-page.html and /index.html from the app-front service, and routes all other requests to the app-front service.

Step 2 Prepare the UI5 Project for Deployment
+
Step 3 Deploy the project using cf cli
+
Step 4 Get the Application Frontend Service URL
+
Step 5 Deploy webapp folder changes using afctl
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Prepare the UI5 Project for Application Frontend 2. Prepare the UI5 Project for Deployment 3. Deploy the project using cf cli 4. Get the Application Frontend Service URL 5. Deploy webapp folder changes using afctl

Learn more →