Skip to Content

Deploy in SAP BTP, Cloud Foundry Runtime

This tutorial shows you how to deploy your CAP application as a multitarget application (MTA).
You will learn
  • How to deploy your CAP application as multi-target application (MTA)
slavipandeSvetoslav PandelievMarch 17, 2025
Created by
slavipande
October 12, 2023
Contributors
slavipande

Prerequisites

This tutorial follows the guidance provided in the SAP BTP Developer’s Guide.

  • Step 1

    The SAP BTP, Cloud Foundry environment allows you to create polyglot cloud applications in Cloud Foundry. It contains the SAP BTP, Cloud Foundry runtime, which is based on the open-source application platform managed by the Cloud Foundry Foundation.

    The SAP BTP, Cloud Foundry environment enables you to develop new business applications and business services, supporting multiple runtimes, programming languages, libraries, and services.

    For more information about the Cloud Foundry environment, see Cloud Foundry Environment.

  • Step 2

    A multitarget application (MTA) is logically a single application comprised of multiple parts created with different technologies, which share the same lifecycle.

    The developers of the MTA describe the desired result using the MTA model which contains MTA modules, MTA resources and interdependencies between them. Afterwards, the MTA deployment service validates, orchestrates, and automates the deployment of the MTA, which results in Cloud Foundry (CF) applications, services and SAP-specific contents.

    You will use the Cloud MTA Build Tool to deploy the Incident Management application. The modules and services are configured in the mta.yaml deployment descriptor file.

    1. In SAP Business Application Studio, go to your IncidentManagement dev space.

      Make sure the IncidentManagement dev space is in status RUNNING.

    2. From the root of the INCIDENT-MANAGEMENT project, choose the burger menu, and then choose TerminalNew Terminal.

    3. Run the following command to generate the mta.yaml deployment descriptor:

      bash
      Copy
      cds add mta
      
  • Step 3

    You can create a CAP project in either Node.js or Java. You have to choose one way or the other and follow through. The tabs Node.js and Java provide detailed steps for each alternative way.

  • Step 4

    Which is the correct command for generating the mta.yaml deployment descriptor?

  • Step 5

    Run the following commands to assemble everything into a single mta.tar archive:

    bash
    Copy
    npm install
    mbt build
    

    See Multitarget Applications in the Cloud Foundry Environment to learn more about MTA-based deployment.

  • Step 6

    In the next tutorials, you will access your UIs from SAP Build Work Zone, standard edition. The SAP Build Work Zone, standard edition will trigger the authentication flow to provide the required token to access the service.

Back to top