Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

TREE ALV with dynamic columns and dynamic nodes

0 Kudos
452

Hi ,

My requirement is to display data in a tree ALV format which has dynamic columns. I have attached the sample output expected.

The columns (Ex: Business Area XXX) is dynamic.

Levels should be visible only when I drill down.

Need your help.

Appreciate your effort. Thanks in advance.

2 REPLIES 2

MateuszAdamus
Active Contributor
0 Kudos
162

Hello neha.kalal

Have a look at this example: https://blogs.sap.com/2018/01/04/salv-treecl_salv_tree-functionalities-events-and-tricks/

Kind regards,
Mateusz

Sandra_Rossi
Active Contributor
0 Kudos
162

Why a tree with ALV? Do you want to allow aggregation, sort, filter, layout variants and other ALV features?

The tree in your screenshot is not used to be called a "tree alv". I think yours is built using function module RS_TREE_LIST_DISPLAY (some secondary function modules are also needed).

If you want something more beautiful, there's the class CL_GUI_ALV_TREE for instance.

If you don't need the ALV features, you also have several tree control classes like CL_GUI_COLUMN_TREE, etc.