Skip to Content
0

Can remove CL_SALV_TREE blank area ?

Oct 20, 2017 at 09:11 AM

42

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Oct 20, 2017 at 12:18 PM
2

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?

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Oct 20, 2017 at 02:00 PM
1

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).

Share
10 |10000 characters needed characters left characters exceeded