From 9da93a4dd4ee85a21ea3769e4f7a9cfe874de8fa Mon Sep 17 00:00:00 2001 From: danrega <16720986+danrega@users.noreply.github.com> Date: Mon, 20 Mar 2023 09:59:26 +0100 Subject: [PATCH] Update content --- 15_CDS_View_Entities.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 15_CDS_View_Entities.md diff --git a/15_CDS_View_Entities.md b/15_CDS_View_Entities.md new file mode 100644 index 0000000..5328ce5 --- /dev/null +++ b/15_CDS_View_Entities.md @@ -0,0 +1,36 @@ +# CDS View Entities + +- [CDS View Entities](#cds-view-entities) + - [More Information](#more-information) + - [Executable Example](#executable-example) + +Core data services (CDS) are an infrastructure for defining and consuming semantically rich data models on the [standard database](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenstandard_db_glosry.htm) of an [AS ABAP](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenas_abap_glosry.htm). + +> **💡 Note**
+> - For cheat sheet content on CDS views, check out [this blog](https://blogs.sap.com/2022/10/24/feature-matrix-data-modeling-with-abap-core-data-services/). +> - 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. + +## More Information + +- [Feature Matrix: Data Modeling with ABAP Core Data Services](https://blogs.sap.com/2022/10/24/feature-matrix-data-modeling-with-abap-core-data-services/) +- [ABAP CDS Cheat Sheet: Amounts and Quantities in ABAP CDS](https://blogs.sap.com/2022/07/07/abap-cds-cheat-sheet-amounts-and-quantities-in-abap-cds/) +- [Section *ABAP - Core Data Services (ABAP CDS)* in the ABAP keyword Documentation](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abencds.htm) + +## Executable Example +[zcl_demo_abap_cds_ve](./src/zcl_demo_abap_cds_ve.clas.abap) + +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 ... +- the comments in the example CDS view entities (zdemo_abap_cds_ve...) and the [class](./src/zcl_demo_abap_cds_ve.clas.abap). +- the steps outlined [here](README.md#-getting-started-with-the-examples) about how to import and run the code.