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 and Expose Custom CDS Views

Create a custom CDS view from an existing data source and expose it as a Web Service.

Overview

🎓 beginner 15 min. ABAP DevelopmentBeginnerABAP Extensibility

You will learn

  • โœ”How to create a CDS view to minimize a data set exposed to customer
  • โœ”How to expose the CDS view as a web service
Merve Temel M Merve Temel April 18, 2023
Created by March 9, 2023
Contributors

Prerequisites

Prerequisites

Assign the Business Catalog SAP_CORE_BC_EXT and SAP_CORE_BC_COM to your user.

Steps

Intro

If you need access to data in your system in a way the system does not offer so far, you can create your own data access by making use of a custom Core Data Services view (custom CDS view). Usually, the data of an application is distributed across several database tables. Using CDS views allows you to model the data access without changing underlying database tables. In general, CDS views are intended to be consumed by a UI, analytics or other systems. CDS View can be built on CDS Views as well. To simplify the data access there are pre-delivered CDS Views, custom CDS views can only be built on.

Time to Complete

15 Min.


Step 1 Open Custom CDS Views application
โ€”

Navigate to the Extensibility category and press the Custom CDS Views tile to start the application on your Fiori Launchpad.

start Custom CDS View App
start Custom CDS View App

Step 2 Select data source
+
Step 3 Create custom CDS view
+
Step 4 Select fields
+
Step 5 Generate OData service
+
Step 6 Open Custom Communication Scenarios application
+
Step 7 Add new scenario
+
Step 8 Add name and description
+
Step 9 Add services
+
Step 10 Publish communication scenario
+
Step 11 Use communication system and user
+
Step 12 Create communication arrangement
+
Step 13 Add new communication arrangement
+
Step 14 Select scenario and describe arrangement name
+
Step 15 Save communication arrangement
+
Step 16 Generating URL
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 16
1. Open Custom CDS Views application 2. Select data source 3. Create custom CDS view 4. Select fields 5. Generate OData service 6. Open Custom Communication Scenarios application 7. Add new scenario 8. Add name and description 9. Add services 10. Publish communication scenario 11. Use communication system and user 12. Create communication arrangement 13. Add new communication arrangement 14. Select scenario and describe arrangement name 15. Save communication arrangement 16. Generating URL

Learn more →