SAP CDS F1 HIERA ELEMENT LIST



Get Example source ABAP code based on a different SAP table
  


• { } ABAP_CDS_DEFINE_HIERA

ABAP_CDS_DDL - DEFINE HIERARCHY, element_list

ABAP_SYNTAX
... { element1, element2, ..., } ...

What does it do?
Defines the elements of a CDS hierarchy . The elements are specified in a comma-separated list enclosed in curly brackets { }.
The elements determine either the components of the result set of the CDS hierarchy and of the structured data type represented by the CDS hierarchy with respect to ABAP or they expose a CDS association.
The ABAP data types of the components of the structured data type are derived from the dictionary types of the elements in accordance with the associated mapping rules.

ABAP_EXAMPLE_VX5
Element list of a CDS hierarchy in which all possible hierarchy attributes are listed after the prefix $node.. The class CL_DEMO_HRRCHY_TREE_HIER_ATTR accesses the CDS hierarchy and uses AB_SQL to read all elements of the element list plus the additional hierarchy columns. When executed, CL_DEMO_HRRCHY_TREE_HIER_ATTR demonstrates that the values of the hierarchy attributes and of the associated hierarchy columns are the same.
DDLS DEMO_CDS_SIMPLE_TREE_HIER_ATTR
ABAP_EXAMPLE_END