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

Import SAP SuccessFactors OData Services definitions

In this phase of the extension development you will import the definition of the required OData services

Overview

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

You will learn

  • โœ”How to import OData services definitions to a CAP project via Entity Data Model XML (EDMX) files
  • โœ”Understand how the EDMX is translated into the Core Schema Notation (CSN) (basically a JSON file) from the CAP framework
  • โœ”Understand the changes made to package.json by the import process
  • โœ”How to create destination and XSUAA service instances on BTP Cloud Foundry
  • โœ”How to bind service instances to your local CAP project
Unknown U Unknown November 1, 2022
Created by September 28, 2022
Contributors

Prerequisites

Steps

Step 1 Get services metadata
โ€”

The first thing you need to do is to get the XML files (EDM XML โ€“ Entity Data Model XML โ€“ in short EDMX) which define the entities that compose the OData services to be consumed in the application. You can get such files from SAP API Business Hub.

1- Access https://api.sap.com:

Figure 1 โ€“ SAP API Business Hub
Figure 1 โ€“ SAP API Business Hub

2- In the search bar type ECEmployeeProfile and press Enter.

Figure 2 โ€“ Find the ECEmployeeProfile OData Service
Figure 2 โ€“ Find the ECEmployeeProfile OData Service

3- Click on the item from the search result and in the API Specification at the bottom of the page click on the down arrow next to the EDMX option.

Figure 3 โ€“ Download EDMX file
Figure 3 โ€“ Download EDMX file

4- Save the ECEmployeeProfile.edmx file (keep that file name) to a folder in your local computer.

5- Click on the SAP logo at the top left corner of the page to return to the home page and repeat the exact same procedure from steps 2 to 4, but now searching for the PLTUserManagement OData service to save the PLTUserManagement.edmx file to your local computer.

Step 2 Import files to the CAP project
+
Step 3 Checkout the import results
+
Step 4 Create destination and XSUAA service instances
+
Step 5 Bind destination and XSUAA service instances to the local CAP project
+
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. Get services metadata 2. Import files to the CAP project 3. Checkout the import results 4. Create destination and XSUAA service instances 5. Bind destination and XSUAA service instances to the local CAP project 6. Check your knowledge

Learn more →