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: 

CL_SALV_TREE

former_member193202
Participant
0 Kudos
355

Hi folks,

we use CL_SALV_TREE to create a tree, where we have columns where we show icons, we do this in the moment with item->set_icon routine on each item, which is VERY!!!! slowly.

is there any possiblity to say the TREE that a particular Column is of type ICON, like it is possible with "normal ALV Grid".....

kind regards oliver

2 REPLIES 2

Former Member
0 Kudos
131

Hello Oliver,

I don't think it's possible... See <a href="http://help.sap.com/saphelp_nw70/helpdata/en/a9/e6eb40c4f8712ae10000000a155106/frameset.htm">documentation</a>

In the tree structure you can display an icon in any item. To do this, use the method SET_ICON in the CL_SALV_ITEM class...

In the class CL_SALV_COLUMN_TREE there is no set_icon methode...

0 Kudos
131

Hi Walter

yes i think you're right, but performance is very poor.

Consider you have about 300 Nodes - and each data row has 6 icon fields -, it is very time consuming to update these items with this method.

i thought it could be possible as routine ADD_NODE of cl_gui_alv_tree (wihich is call at the end of add_node of cl_salv_node) has the optional parameter IT_ITEM_LAYOUT but this is not passed to the method.

so internally it might work ?? ;-((

regards oliver