SAP CDS SELECT LIST V1



Get Example source ABAP code based on a different SAP table
  


• * ABAP_CDS_SELECT_V1

ABAP_CDS_DDL - DDIC-Based View, SELECT, select_list

ABAP_SYNTAX
... element1, element2, ...
$| * ...

What does it do?
Defines an element of a ABAP_CDS_V1_VIEW . The elements can be specified as follows:
In a comma-separated list, elements can be defined by specifying element1, element2 ...
* can be used to define all fields of the data source of the CDS view as elements and expose all CDS associations, CDS compositions, and CDS-to-parent associations of the current view. If another CDS view is used as a data source, the CDS associations, CDS compositions, and CDS-to-parent associations exposed in its SELECT list are not exposed by the current CDS view. The asterisk * cannot be specified if the current CDS view contains joins or union sets when the data source is specified.
The names of the elements of a CDS view must be unique. These are either
The names of the elements taken from the data sources
Alternative element names specified using AS
The names specified in a name list
These names are also the names of the view fields of the ABAP_CDS_MNG_VIEW and the corresponding rules that must be kept.



Latest notes:

The maximum number of elements and the limit on the total of field lengths is determined by the corresponding limits for the associated CDS- managed DDIC view.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The following CDS view demo_sales_order_old2 is a view of the DDIC database table snwd_so. Three elements ( so_id, currency_code , and gross_amount) are defined for this view.
DDLS DEMO_SALES_ORDER_OLD2
ABAP_EXAMPLE_END

ABAP_EXAMPLE_VX5
The following CDS view demo_sales_order_old3 is a view of all the fields of the DDIC database table snwd_so. Accessing the CDS view has the same effect as when the database itself is accessed.
DDLS DEMO_SALES_ORDER_OLD3
ABAP_EXAMPLE_END