ABAP Keyword Documentation → ABAP - Dictionary → ABAP CDS in ABAP Dictionary → ABAP CDS - Data Definitions
ABAP CDS - Table Functions
A CDS table function is defined in the DDL source code of a CDS data definition in the ABAP Development Tools using the statement DEFINE TABLE FUNCTION in the CDS DDL of the ABAP Core Data Services (CDS). DCL source code in a CDS table function can also be displayed in Repository Browser in ABAP Workbench. A CDS table function includes the following:
- The CDS entity
- In ABAP CDS, the CDS entity can be used as a data source of other CDS entities.
- In ABAP, the CDS entity can be used as a data type and in ABAP SQL read statements.
- The CDS entity cannot be used as a data type for definitions of classic dictionary objects in ABAP Dictionary.
FOR TABLE FUNCTION
.
Like a CDS view, a CDS table function is client-specific by default and implicit client handling is applied in ABAP SQL reads.
Other versions:
7.31 | 7.40 | 7.54
Notes
- CDS table functions can only be used in a database system that supports AMDP.
- When a CDS table function is created, the CDS entity must be activated first, before the associated AMDP function implementation is created.
- When a CDS table function is transported, the CDS entity is first transported as part of the dictionary transport objects and then the AMDP function implementation as part of the ABAP transport objects. Depending on the size of the transport, there can be a considerable delay between these two phases where the CDS table function is not in a usable state.