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 CDS Data Model for the SAP SuccessFactors Extension

In this phase of the extension development you will create the extension data model, load initial test data and perform the first CAP service test.

Overview

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

You will learn

  • โœ”Review the extension data model
  • โœ”How to create the CDS data model in the CAP project
  • โœ”How to populate the model with initial test data
  • โœ”How to perform the first CAP service test
Unknown U Unknown November 1, 2022
Created by September 28, 2022
Contributors

Prerequisites

Steps

Step 1 Review the data model
โ€”

Before you move on with the coding, just quickly review the conceptual data model of your solution:

Figure 1 โ€“ Data Model Diagram
Figure 1 โ€“ Data Model Diagram

The logical model depicted in the diagram above has been conceived to comply with the following business rules:

  1. Each project is composed by members (team) and activities;
  2. The project team (members) is made of SAP SuccessFactors employees;
  3. Each project member has an specific role in the project;
  4. Each project activity is assigned to a specific project member;
  5. Projects and activities have one status each (i.e. not started, in progress, overdue, completed etc.);
  6. And last, but not least, whenever a team member is assigned to a project, a special assignment is registered to the employee’s background to signal that such employee has participated in the project, acting in a specific role, as part of the employee’s professional experience.

Now, having that model in mind, you can make its definition into the CAP project.

Step 2 Create CDS data model file
+
Step 3 Perform the model coding
+
Step 4 Load initial test data
+
Step 5 Execute the first test
+
Step 6 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 6
1. Review the data model 2. Create CDS data model file 3. Perform the model coding 4. Load initial test data 5. Execute the first test 6. Check your knowledge

Learn more →