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 the CAP Service for the SAP SuccessFactors Extension

In this phase of the development you will create and test the service definition for the extension.

Overview

🎓 beginner 6 min. SAP Cloud Application Programming ModelBeginnerSAP BTP Cloud Foundry Environment

You will learn

  • โœ”How to create and code the service definition in your CAP project
  • โœ”Understand the service definition code
  • โœ”How to test the service
Unknown U Unknown November 1, 2022
Created by September 28, 2022
Contributors

Prerequisites

Steps

Step 1 Create the service definition file
โ€”

In the previous tutorial from this group, you have defined the data model for your solution and populated it with some initial test data. But, when you first run the application you noticed no services have been defined, thus the entities where not exposed.

In this step you will create the service definition file for further coding.

On the left-hand pane of SAP Business Application Studio, (1) select the srv folder, then (2) click on the three dots to the right of the project name and (3) select New File.

Figure 1 โ€“ Create New File
Figure 1 โ€“ Create New File

On the dialog name the file projman-service.cds and click OK.

Figure 2 โ€“ Set File Name
Figure 2 โ€“ Set File Name

Step 2 Code the service definition
+
Step 3 Understand the definition code
+
Step 4 Test the service
+
Step 5 Check your knowledge
+

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 the service definition file 2. Code the service definition 3. Understand the definition code 4. Test the service 5. Check your knowledge

Learn more →