Skip to Content

Deploy MTA based application to Application Frontend

Learn how to create and deploy your Application Frontend applications as part of MTA based project using SAP Business Application Studio.
You will learn
  • Configure destinations to facilitate fast development with SAP Business Application Studio project templates.
  • Create the MTA project with Fiori application and Application Frontend deployment configuration.
  • Preview Fiori application without deploying it.
  • Build and deploy MTA project.
  • Find the link to deployed Fiori application and run it.
  • Re-deploy UI static resources with CLI.
micelliusVadim TomnikovOctober 23, 2025
Created by
rbrainey
October 23, 2025
Contributors
rbrainey

Prerequisites

  • Step 1
    1. Navigate to BTP Cockpit subaccount.
    2. Navigate to Destinations.
    3. UI5

    4. Click Create.
    5. Select From Scratch.
    6. Fill the Destination Details form:
    7. Nameui5
      TypeHTTP
      Proxy TypeInternet
      URLhttps://ui5.sap.com
      AuthenticationNoAuthentication
    8. Click Create.
    9. Northwind

    10. Click Create.
    11. Select From Scratch.
    12. Fill the Destination Details form:
    13. Namenorthwind
      TypeHTTP
      Proxy TypeInternet
      URLhttps://services.odata.org/northwind/northwind.svc/
      AuthenticationNoAuthentication
    14. Use Add Property button to configure additional destination properties:
    15. WebIDEEnabledtrue
      WebIDEUsageodata_gen
      WebIDEAdditionalDatafull_url
      HTML5.DynamicDestinationtrue

      The additional destination properties above are only required to enable relevant SAP Business Application Studio capabilities. Add them to destinations used in development, but not in production.

    16. Click Create.
    Northwind Destination
  • Step 2
    1. Navigate to BTP Cockpit subaccount.
    2. Navigate to Services > Instances and Subscriptions
    3. In the Subscriptions table click on SAP Business Application Studio link.
    Open SAP Business Application Studio from BTP Cockpit
    1. Click CreateDevSpace.
    2. Enter Dev Space name (e.g. MyDevSpace).
    3. Select SAP Fiori kind of application.
    4. Select Application Frontend Service CLI additional SAP extension.
    5. Click Create Dev Space.
    Create Dev Space
  • Step 3
    1. Open the dev space created at the previous step.
    2. Click on New Project from Template button of Get Started page. Alternatively, in the menu select:
    3. ☰ > File > New Project from Template

    New Project from Template
    1. Select SAP Fiori generator card and click Start.
    SAP Fiori generator
    1. Select List Report Page card and click Next.
    List Report Page
    1. At Data Source and Service Selection step enter the following and click Next:
    2. Data SourceConnect to a System
      Systemnorthwind
      Servicehttps://services.odata.org/northwind/northwind.svc/
    Data Source and Service Selection
    1. At Entity Selection step enter the following and click Next:
    2. Main EntityProducts
      Navigation EntityNone
      Table TypeResponsive
    Entity Selection
    1. At Project Attributes step enter select:
    2. Add Deployment ConfigurationYes

      Leave the rest of the fields without modification. Click Next.

    Entity Selection
    1. At Deployment Configuration step enter the following and click Finish:
    2. Please choose the targetCloud Foundry
      Destination Namenorthwind - https://services.odata.org/northwind/northwind.svc/
      Add Router ModuleAdd Application to Application Frontend Service
    Deployment Configuration
    1. Click Open folder.
    Open folder

    Which field in the Deployment Configuration step instructs SAP Fiori generator to add Application Frontend deployment configuration?

  • Step 4
    1. Press F1 to open command menu.
    2. Select:
    3. Fiori: Preview Application

    Preview Command
    1. Select:
    2. start fiori run --open "test/flp.html#app-preview"

    Preview Options
    1. In the opened application preview click on the gear button and select columns to display in the table:
    View Settings
    1. Click OK.
    2. Click Go button to see the data.
    Application preview with data
  • Step 5
    1. Right click on mta.yaml file in project explorer and select Build MTA Project.
    Build MTA Project
    1. Wait until MTA project build process is finished.
    2. Right click on mta_archives/project1_0.0.1.mtar file in project explorer and select Deploy MTA Archive.
    Deploy MTA Archive
    1. If prompted, sign in to Cloud Foundry.
      • Click Open a new browser page to generate your SSO passcode link.
      • Proceed with authentication to generate passcode.
      • Fill the Enter your SSO Passcode field with generated passcode.
      • Click Sign in.
      • Select organization and space.
      • Click Apply.
    Login to Cloud Foundry
    Select Organization and Space
    1. Wait until MTA archive is deployed.

    What is the value of service parameter of project1-app-front resource in mta.yaml?

  • Step 6
    1. Navigate to BTP Cockpit subaccount.
    2. Navigate to HTML5 > Application Frontend.
    Application Frontend
    1. Click on the link with application name project1 and see the application running.
    Run application
  • Step 7

    This step of tutorial is optional. It shows how you can shorten the UI development cycle by skipping the build and re-deploy of the whole MTA. The technic below allows to re-deploy only static resources of UI application.

    1. Navigate to BTP Cockpit subaccount.
    2. Navigate to Services > Instances and Subscriptions.
    3. In the Subscriptions table click on Appication Frontend Service link.
    4. Copy the URL from Application Frontend CLI section of opened welcome page.
    5. Navigate to SAP Business Application Studio (same Dev Space that you worked with during previous steps).
    6. Open webapp/index.html and change the title of the page:
    Change title in index.html
    1. Open integrated Terminal in the root of the project.
    2. Build UI:
    bash
    Copy
    npm run build
    
    1. Log in to Application Frontend service with CLI, using copied from welcome page URL. When prompted, click Open.
    bash
    Copy
    afctl login --sso -a '<URL>'
    
    Login with CLI
    1. Re-deploy build results of the UI:
    bash
    Copy
    afctl push dist
    
    Re-deploy with CLI
    1. Click on the link in CLI command output or refresh the browser page with UI application to which you navigated from BTP Cockpit.
    2. See the title of application (browser tab label) changed.
Back to top