

Associations from the projected entity can either be exposed directly or redirected to a new target (more details below).All elements can be given a new alias name.New calculated fields can be added with the keyword VIRTUAL (more details below).In the element list, fields and associations from the underlying projected entity are exposed.The data source of a CDS projection view can be either a CDS view entity without parameters, or a CDS DDIC-based view without parameters (this is still supported for downward compatibility).A projection view is defined using DEFINE VIEW ENTITY AS PROJECTION ON.Annotations (entity annotations, view annotations, and element annotations) are inherited from the projected entity by default, but they can be overwritten.The example shows the syntax of a CDS projection view: _Buyer : redirected to DEMO_SALES_PV_BUPA_EXP Syntax of a CDS projection view 'Exposure of SO Projection View'ĭefine root view entity DEMO_SALES_PV_SO_EXP The image is an adaptation of the image published in the Developer Guide for the ABAP RESTful Application Programming Model. Because CDS projection views are always based on existing CDS view models, they can’t directly access a database table. The following image shows the role that CDS projection views play in making a business service. A CDS projection view is a CDS view defined using DEFINE VIEW ENTITY AS PROJECTION ON. A projection view is always based on exactly one existing CDS view entity or CDS DDIC-based view and exposes a subset of its elements, which are required for a specific business service. They define interfaces on the basis of existing CDS view models. What is a CDS projection view and what does it do?ĬDS projection views serve a special purpose within the ABAP RESTful Application Programming Model (RAP).

For further details on the different types of CDS views, see this blog post post about CDS view entities. For example, they don’t have an SQL view attached. CDS projection views have been designed similarly to CDS view entities. There are currently three types of CDS views available: CDS view entities (DEFINE VIEW ENTITY), CDS DDIC-based views (DEFINE VIEW), and CDS projection views. This blog post explains what a CDS projection view is, what it does, and which components it consists of. Since ABAP release 7.76, there’s a new CDS entity available: the CDS projection view.
