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 and Run the Incident Management Application in the SAP BTP, Cloud Foundry Runtime with a Mock Server

Learn how to deploy the Incident Management application in the SAP BTP, Cloud Foundry runtime and test it with the mock server that you've installed.

Overview

🎓 intermediate 30 min. SAP Cloud Application Programming ModelIntermediateNode JsSAP Business Technology Platform

You will learn

  • βœ”How to deploy and the Incident Management application in the SAP BTP, Cloud Foundry runtime.
  • βœ”How to test the application with the mock server that you’ve installed.
Created by April 8, 2024
Contributors

Prerequisites

Prerequisites

OUT OF MAINTENANCE

This tutorial is no longer maintained. For an up-to-date version and support with any issues, refer to the Develop a Side-by-Side CAP-Based Extension Application Following the SAP BTP Developer’s Guide mission in the SAP Discovery Center.

Steps

Step 1 Deploy the Incident Management application
β€”

  1. In SAP Business Application Studio, navigate to the Incident Management application folder and add the [production] profile credentials (destination and path) to the settings for API_BUSINESS_PARTNER to the package.json file:

    JSON
      "API_BUSINESS_PARTNER": {
        "kind": "odata", 
        "model": "srv/external/API_BUSINESS_PARTNER", 
        "[production]": { 
          "credentials": { 
            "destination": "<destination_name>",
            "path": "odata/v2/api-business-partner"
          }
        }
      }

    Replace <destination_name> with the name of the destination that you created at Step 5: Create a destination to the mock server of Install a Mock Server in the SAP BTP, Cloud Foundry Runtime.

  2. In the mta.yaml file, look for the incident-management-srv module’s requires section, and make sure that the line - name: incident-management-destination is added:

    YAML
    - name: incident-management-srv
      type: nodejs
      path: gen/srv
      requires:
      - name: incident-management-auth
      - name: incident-management-db
      - name: incident-management-destination
    ....
  3. Log in to your subaccount in SAP BTP:

    Shell
    cf api <API-ENDPOINT>
    cf login
    cf target -o <ORG> -s <SPACE>

    You can find the API endpoint in the Overview section of your subaccount in the SAP BTP cockpit.

  4. Run the following commands to build and deploy your project to the SAP BTP, Cloud Foundry runtime:

    Shell
    mbt build
    cf deploy mta_archives/incident-management_1.0.0.mtar 
Step 2 Test the Incident Management application
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Deploy the Incident Management application 2. Test the Incident Management application

Learn more →