Create and expose a custom CDS view
2019-12-24
Beginner
15 min.
Create a custom CDS view from an existing data source and expose it as a Web Service.
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
Details
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.
Prerequisites
Assign the Business Catalog SAP_CORE_BC_EXT
and SAP_CORE_BC_COM
to your user.
Step 1: Open Custom CDS Views application
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
Navigate tutorial steps
-
Step 1: Open Custom CDS Views application
-
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
- Back to Top