Get Example source ABAP code based on a different SAP table
SELECT>, FROM cds_hierarchy>
ABAP_SYNTAX ... cds_hierarchy$[sql_para>$] ...>
What does it do? Specifies a CDS hierarchy> cds_hierarchy> as an SQL hierarchy> hierarchy>> in an AB_SQL query. The CDS hierarchy is specified using its name cds_hierarchy> defined after DEFINE HIERARCHY>>. If the CDS hierarchy has input parameters, actual parameters must be assigned to these in a parenthesized list sql_para>>. The rows of the tabular result set of a CDS hierarchy specified as a data source are the hierarchy nodes> of the SQL hierarchy and their columns are composed of the elements of the CDS hierarchy and the additional hierarchy columns > that can be used to access the hierarchy attributes> of the data source of the CDS hierarchy.