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

Consume a CAP Service in SAP Build Apps

Using SAP Build Apps, create an app that calls a CAP service via a destination, updates data, and manages permissions based on SAP BTP role collections.

Overview

🎓 beginner 20 min. SAP BuildBeginnerSAP Business Technology PlatformSAP Build Apps Enterprise EditionSAP Cloud Application Programming ModelSAP Business Application Studio

You will learn

  • How to import projects
  • How to create a data resource from a destination
  • How to check BTP permissions to a CAP service
  • How to do CRUD operations in SAP Build Apps for a CAP service
Daniel Wroblewski D Daniel Wroblewski July 20, 2026
Created by August 3, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

Instead of building the entire project from scratch, you will import a project with all the pages created, all the UI components added to the pages, and all the components stylized. Most bindings will also be set.

The app you will help build has 3 pages:

App design
App design

  • Risks: This page lists all the existing risks (with description and criticality displayed), and includes a button so you can add a new risk.

    Next to each risk is a delete button, which lets you delete a risk from the CAP service.

  • Risk Details: This page shows all fields for a specific risk, plus the corresponding mitigation selected for the risk (if one exists). The page has 2 actions you can do:

    • There is an Edit button to edit the fields. The button takes you to the Manage Risks page, which is used for both adding and editing risks.

    • All the existing mitigations are displayed, and you can select one to assign it to the current risk, instead of the currently assigned mitigation.

  • Manage (Add/Update) Risks: This page lets you add a new risk or update an existing risk (if a risk ID is passed). If you navigate from an existing risk, all the field values for that risk are loaded, and you will be updating that risk.

IMPORTANT: Both the CAP service and the SAP HANA instance on a trial account may stop automatically each day, or more frequently. If you do not get returned data, check that they are running and restart them if necessary.

Restart services
Restart services

Step 1 Open SAP Build Apps

Open SAP Build Apps, by going to the SAP BTP cockpit, and under Instances and Subscriptions, click SAP Build Apps.

Open SAP Build Apps
Open SAP Build Apps

The SAP Build lobby should open.

Lobby
Lobby

Step 2 Import project
+
Step 3 Create data resource for CAP app
+
Step 4 Risks – Review logic to check permissions
+
Step 5 Risks – Add logic to navigate to add risk
+
Step 6 Test app
+
Step 7 Manage Risks – Add logic to load data
+
Step 8 Manage Risks – Add logic to add/update risk
+
Step 9 Test app
+
Step 10 Risk Details – Add logic to edit risk
+
Step 11 Risk Details – Review logic to change mitigation
+
Step 12 Test app
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 12
1. Open SAP Build Apps 2. Import project 3. Create data resource for CAP app 4. Risks – Review logic to check permissions 5. Risks – Add logic to navigate to add risk 6. Test app 7. Manage Risks – Add logic to load data 8. Manage Risks – Add logic to add/update risk 9. Test app 10. Risk Details – Add logic to edit risk 11. Risk Details – Review logic to change mitigation 12. Test app

Learn more →