Ansicht
Dokumentation

ABENSELECT_FROM_ITAB_HIERA_ABEXA - SELECT FROM ITAB HIERA ABEXA

ABENSELECT_FROM_ITAB_HIERA_ABEXA - SELECT FROM ITAB HIERA ABEXA

BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

SELECT, Internal Table as a Data Source of the Hierarchy Generator

This example demonstrates how an internal table is accessed in a common table expression with self association and how the table is used as a data source of the hierarchy generator.

Source Code

Execute

Description

An internal table parent_child_tab is used as a data source of the common table expression +parent_child_source in a WITH statement. A CTE association _relat is defined and exposed for the common table expression. The CTE association is a self-association. The common table expression can be used as a data source and the CTE association can be used as a hierarchy association of the hierarchy generator HIERARCHY used in the main query of the WITH statement.






General Material Data   General Material Data  
This documentation is copyright by SAP AG.

Length: 1528 Date: 20240329 Time: 090023     sap01-206 ( 21 ms )