‎2009 Sep 23 8:16 AM
Hi I am trying to get the selected node in the alv tree. I don't know what I am doing wrong:
call method gc_alv_tree->get_toolbar_object
importing
er_toolbar = mr_toolbar.
CHECK NOT mr_toolbar IS INITIAL.
here is the part of my code which exists from the form completely. mr_toolbar is always initial.
any help please?
‎2009 Sep 23 8:18 AM
‎2009 Sep 23 8:18 AM
‎2009 Sep 23 8:38 AM
yes but its not clear to how to get the current selected node from the tree
‎2009 Sep 23 8:55 AM
Hi Charla6,
If you want to get the selected node, the right method is get_selected_nodes, isn't it?
DATA : lt_selected_nodes TYPE treev_nks.
CALL METHOD gc_alv_tree->get_selected_nodes
CHANGING
ct_selected_nodes = lt_selected_nodes.You also have the method get_selected_item (you can have a look in SE24 on all the methods implemented for the class of your object gc_alv_tree - something like CL_GUI_ALV_TREE, I guess?).
Best regards,
Samuel