Core data services (CDS) are an infrastructure for defining and consuming semantically rich data models on the standard database of an AS ABAP.
💡 Note
- For cheat sheet content on CDS views, check out this blog.
- The executable example focuses on CDS view entities and covers a selection of features.
- The sample CDS view entities are designed to demonstrate a selection of features with a limited number of artifacts. They are not intended to be role models for proper CDS view design. They focus on syntax options only. They are not intended to solve concrete programming tasks. You should always work out your own solution for each individual case.
- Feature Matrix: Data Modeling with ABAP Core Data Services
- ABAP CDS Cheat Sheet: Amounts and Quantities in ABAP CDS
- Section ABAP - Core Data Services (ABAP CDS) in the ABAP Keyword Documentation
- ABAP Data Models Guide
The example covers the following topics:
- Operands, expressions, built-in functions, and input parameters in CDS view entities
- Selecting data from CDS view entities using ABAP SQL SELECT statements
- Joins
- Note: A sample CDS view entity contains multiple joins. You can comment in/out code sections to see the effect. See the notes in the view.
- Excursion: Joins in ABAP SQL
- Associations
- Defining views with associations
- Exposing associations
- Using exposed associations in ABAP statements
Note ...