Skip to Content
avatar image
Former Member

Can remove CL_SALV_TREE blank area ?

Hello, Experts.

Can I remove this red marked area below TOP_OF_LIST? I used cl_gui_docking_container and CL_SALV_TREE for create tree node.

Purpose of TOP_OF_LIST is just for testing.

CL_SALV_TREE constructor parameter HIDE_HEADER = X is controlling TOP_OF_LIST header area..

After remove header area, the space is still remain..

I want to hierarchy_header stuck to the top of container.

salv-tree.png (25.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 20, 2017 at 12:18 PM

    Which of the subobjects of the class did you already try (e.g. CL_SALV_LAYOUT, CL_SALV_TREE_SETTINGS for example)

    Hint: Look in online help for list of those subsobjects and how to get their reference in your code.)

    Question: If you only display a hierarchy, why did you use an ALV class and not the good old CL_GUI_SIMPLE_TREE?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2017 at 02:00 PM

    This red section is reserved to a toolbar (buttons expand all, etc.) You may display the buttons by using {o:cl_salv_tree}->get_functions( )->set_all( true ), for instance. But I don't know if it's possible to remove the toolbar (buttons are always used and displayed).

    Add comment
    10|10000 characters needed characters exceeded