SAP CDS SELECT LIST V2



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS_DDL - CDS View Entity, SELECT, select_list

ABAP_SYNTAX
... element1, element2, ...

What does it do?
Defines an element of a CDS view entity. The elements can be specified in a comma-separated list: element1, element2 ...
The names of the elements of a CDS view entity must be unique. These are either
the names of the elements taken from the data sources, or
alternative element names specified using AS.
Currently, all data types are supported for elements of a CDS view entity except for the following: DF16_DEC, DF34_DEC, DF16_RAW, DF34_RAW, DF16_SCL, DF34_SCL, PREC, and VARC.
It is not allowed to define a client field in the SELECT list, since client handling takes place implicitly in CDS view entities.



Latest notes:

It is not possible to use an asterisk * to include all fields of the data source in the CDS view entity as elements and expose all CDS associations, CDS compositions, and CDS-to-parent associations of the current view. This syntax can be used in AB_SQL and in ABAP_CDS_V1_VIEWS , but not in CDS view entities.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The following CDS view entity DEMO_SALES_CDS_SO_VE_SIMPLE is a view of the DDIC database table demo_sales_order. Three elements (so_key , BuyerID , and currencySum) are defined for this view.
DDLS DEMO_SALES_CDS_SO_VE_SIMPLE
ABAP_EXAMPLE_END