3.2.14 Export CL_SALV_TREE to the Excel (Org.unit hierarchy)

The introduction

 

This example explains how to insert a hierarchy structure (tree) into the Printing form. The component «Tree» allows you to export an ALV-Tree from Printing program to the Excel-form.

First, in the Printing program we build an CL_SALV_TREE and fill it by org.unit hierarchy, based on the data of HR module. 

Next, we create an Excel-Form and insert this ALV-Tree into it. 

Expected result:

ALV_TREE from ABAP to EXCEL


Hierarchy Excel SAP ABAP