2007 Aug 27 2:10 PM
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
2007 Aug 27 3:06 PM
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...
2007 Aug 27 3:16 PM
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