SAP CDS PV TRANSACTIONAL QUERY



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS_DDL - CDS Projection View, Transactional Queries
CDS transactional queries are intended for modelling the projection layer of a RAP business object. A transactional projection view must always be part of a business object. That means it must either be a root entity itself, or it must be part of a composition tree that contains a root entity. The feature set focuses on specializing the RAP BO operations of the underlying business object. The runtime for transactional queries is mainly the RAP query engine, but also the RAP transactional engine.
The following image shows the role of CDS transactional queries within the ABAP RESTful Application Programming Model.
IMAGE transactional_pv_1.png 900 515
As a global data type, a CDS transactional query represents a structured type with the elements of the CDS projection view as components. Usage:
Unlike other CDS entities, CDS transactional queries currently cannot be used as data source of other CDS entities.
They can be used in ABAP programs as a data type for definitions and in ABAP SQL read statements.



Latest notes:

Transactional projection views have evolved from and will in the future replace consumption views. Both serve the same purpose, namely, to simplify the access to business objects. While consumption views were used for data modelling in the obsolete ABAP Programming Model for SAP Fiori , projection views take over this role in its successor RAP.
NON_V5_HINTS
ABAP_HINT_END

ABAP_FURTHER_INFO
Development guide for the ABAP RESTful Application Programming Model, topic CDS Projection View.
ABAP Data Models development guide, section about CDS transactional queries.