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

Install a Mock Server in the SAP BTP, Cloud Foundry Runtime

This tutorial shows you how to install a mock server using SAP Business Application Studio and how to create a destination to the mock server in your SAP BTP subaccount.

Overview

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

You will learn

  • How to install a mock server in the SAP BTP, Cloud Foundry runtime.
  • How to create a destination to the mock server in the same subaccount.
Created by April 8, 2024
Contributors

Prerequisites

Prerequisites

  • You have an enterprise global account in SAP BTP. To use services for free, you can sign up for an SAP BTPEA (SAP BTP Enterprise Agreement) or a Pay-As-You-Go for SAP BTP global account and use the free tier services only. See Using Free Service Plans.
  • You have a platform user. See User and Member Management.
  • You’re an administrator of the global account in SAP BTP.
  • You have a subaccount in SAP BTP to deploy the services and applications.
  • You have one of the following browsers that are supported for working in SAP Business Application Studio:
    • Mozilla Firefox
    • Google Chrome
    • Microsoft Edge

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 Use a mock server instead of an SAP S/4HANA Cloud tenant

If you don’t have access to an SAP back end system (SAP ECC, SAP S/4HANA Cloud or an SAP on-premise system) but still need OData services with some data, you can use this mock server application. It contains entities of SAP OData services with sample data.

You need to:

  1. Install the mock server using SAP Business Application Studio.

  2. Create a destination to the mock server in the same subaccount in SAP BTP.

The installation of the mock server is only needed if you want to test an application deployed in the SAP BTP, Cloud Foundry runtime. For local development testing, you can use the local mock server.

Step 2 Clone the mock server repository
+
Step 3 Log in to SAP BTP, Cloud Foundry runtime in SAP Business Application Studio
+
Step 4 Build and deploy the mock server application
+
Step 5 Create a destination to the mock server
+
Step 6 Test the mock server
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Use a mock server instead of an SAP S/4HANA Cloud tenant 2. Clone the mock server repository 3. Log in to SAP BTP, Cloud Foundry runtime in SAP Business Application Studio 4. Build and deploy the mock server application 5. Create a destination to the mock server 6. Test the mock server

Learn more →