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

Test CAP Service and its Destination

Test the CAP service created with SAP Business Application Studio's productivity tools, including the destination automatically generated to expose it to SAP Build.

Overview

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

You will learn

  • How to find and test the destination automatically created when you deployed your CAP service
Daniel Wroblewski D Daniel Wroblewski October 25, 2023
Created by August 3, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

In order for SAP Build Apps to access your CAP service, a destination for the service is required. The destination was automatically created when you deployed the service with Enable Discovery.

In this tutorial we will test the destination using the credentials of the current user. We want to log into the service this way because we have defined roles, which can be assigned to specific users. So we need to know the current user.


Step 1 View service in BTP

Open your SAP BTP cockpit and navigate to the Cloud Foundry space where your service is deployed.

Open service
Open service

Click on the service, and then click on Service Bindings. Here you will RiskManagement-uaa

Alt text
Alt text

Finally, click on RiskManagement-uaa, and you will see a service key on the right, for which you can click View to get all the information that was used to build the destination.

Service key
Service key

You won’t need this information now, but if you make certain changes to the destination, you may need to provide the client secret, which is found in this file.

Step 2 View destination
+
Step 3 Give your user roles
+
Step 4 Test service
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. View service in BTP 2. View destination 3. Give your user roles 4. Test service

Learn more →