SAP CDS PV TRANSACTIONAL INTERFACE



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS_DDL - CDS Projection View, Transactional Interface
A CDS transactional interface is a CDS projection view that is intended to serve as stable public interface. A CDS transactional interface should be released internally in the system under the C1 contract, and it can be released additionally under the C0 contract for extensions. A CDS transactional interface is typically used in the context of the ABAP RESTful Application Programming Model to provide the basis for a RAP BO interface. The feature set is restricted to projecting elements from the underlying projected entity. No new associations, virtual elements, or fields can be defined.
The following image shows the position of a CDS transactional interface in a CDS data model.
IMAGE ABDOC_TRANS_INTERFACE.png 195 400
A CDS transactional interface is built on top of a CDS view entity or ABAP_CDS_V1_VIEW . The projected entity must be part of a RAP BO: It must either be a root entity or contain a to-parent association. The transactional interface projects a subset of elements of its projected entity and is released for a specific API state. Under the precondition that the transactional interface is released under the C1 stability contract, a consumer can build a CDS transactional query on top of a CDS transactional interface. This transactional query is the top-most layer of the data model and prepares the data for the particular use case.
As a global data type, a CDS projection view of type transactional interface represents a structured type with the elements of the CDS projection view as components. Usage:
CDS transactional interfaces can be used as data source for CDS transactional queries. They cannot be used as data source for any other CDS entity.
They can be used in ABAP programs as a data type for definitions and in AB_SQL read statements.

ABAP_FURTHER_INFO
Development guide for the ABAP RESTful Application Programming Model, topic Business Object Interface.
ABAP Data Models development guide, section about CDS transactional interfaces.