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

Create simple CAP Service with Node.js using the SAP Business Application Studio

Use SAP Business Application Studio to develop a basic CAP Node.js service for Cloud Foundry. You will use only simple JavaScript functions (no database) and learn some basics from the SAP Cloud Application Programming Model (CAP).

Overview

🎓 intermediate 20 min. SAP Build Process AutomationIntermediateSAP Business Technology PlatformSAP Cloud Application Programming Model

You will learn

  • How to create a Dev Space in SAP Business Application Studio
  • How to create a Project using the CAP Project template
  • How to develop a sample service using CAP and Node.js
  • How to run your service locally
Thomas Jentsch T Thomas Jentsch December 19, 2023
Created by March 15, 2023
Contributors

Prerequisites

Prerequisites

Steps

Overview

Find more information on SAP Cloud Application Programming Model Welcome to CAP.

In this tutorial group you will learn all the steps to finally consume a CAP Service in a process of SAP Build Process Automation.

steps
steps

The Use Case

In this series of tutorials, you will implement a CAP Service with very easy functions like converting a String to a number, converting a list of ids to a comma separated String and finally consume the CAP Service API functions in SAP Build Process Automation Process.


Step 1 Create your pre-configured dev space

  1. Open SAP Business Application Studio.

  2. Choose Create Dev Space.

    Create DEV Space
    Create DEV Space

  3. Use name demo for your dev space and select kind Full-Stack Application Using Productivity Tools.

    name
    name

    By selecting Full-Stack Application Using Productivity Tools, your dev space comes with several extensions out-of-the-box that you need to develop CAP services.

  4. Choose Create Dev Space.

    create
    create

    The creation of the dev space takes a while. You see that the status for your dev space will change from STARTING to RUNNING.

  5. Once the dev space is running, click the dev space name to open it.

    open
    open

    Opening the dev space and starting the Application Studio takes a while.

Step 2 Create a Project
+
Step 3 Build your CAP Service
+
Step 4 Test CAP service locally
+
Step 5 Deploy your Service to Cloud Foundry
+

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. Create your pre-configured dev space 2. Create a Project 3. Build your CAP Service 4. Test CAP service locally 5. Deploy your Service to Cloud Foundry

Learn more →