Get Example source ABAP code based on a different SAP table
• WITH HIERARCHY WITH
WITH>, HIERARCHY>
ABAP_SYNTAX ... WITH HIERARCHY hierarchy $| (hierarchy_syntax)>
What does it do? The addition WITH HIERARCHY> exposes a common table expression as a CTE hierarchy>. Under its name, a common table expression like this can be used in the subsequent queries of the current WITH>> statement as an SQL hierarchy> hierarchy>>. Only a single data source can be accessed in the subquery of the common table expression and this data source must be an SQL hierarchy> hierarchy>>. The SQL hierarchy used as the data source of the subquery can be specified either statically or dynamically after HIERARCHY>.