SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Create Action Project for simple CAP Service in SAP Build Actions

Create an action project using the OpenAPI specification of a simple CAP Service

Overview

You will learn

  • to modify the generated OpenAPI specification of a CAP Service
  • to create an action project based on the API specification
  • to test API using a BTP destination
  • to release and publish the action project to be consumed in a process of SAP Build Process Automation
Thomas Jentsch T Thomas Jentsch August 21, 2026
Created on March 15, 2023
Contributors

More from Thomas Jentsch

See all 4 tutorials by Thomas Jentsch →

Prerequisites

Steps

Step 1 Generate the OpenAPI specification

You will generate the openAPI specification for the service used to create the Action project in SAP Build.

  1. Navigate back to the Business Application Studio. Open your CAP project and run the following command in the Terminal window:

    Shell
    cds compile srv --service all -o docs --to openapi
  2. In the subfolder docs folder, open the file sap_build_cap_sample_library.openapi3.json.

    api spec
    api spec

Step 2 Adjust the OpenAPI specification
+
Step 3 Create action project
+
Step 4 Test actions
+
Step 5 Release and Publish to the Library
+

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. Generate the OpenAPI specification 2. Adjust the OpenAPI specification 3. Create action project 4. Test actions 5. Release and Publish to the Library
Next