‎2018 May 03 1:07 PM
Hello Team,
I want to select the 2 values from 2 different nodes at a time. I know how to select single value of node using using the class CL_GUI_SIMPLE_TREE
NODE_SELECTION_MODE = NODE_SEL_MODE_SINGLE and EVENT-EVENTID = CL_GUI_SIMPLE_TREE=>EVENTID_NODE_DOUBLE_CLICK.
But How do i select 2 diffrent values of 2 different nodes at same level. and store vales in variable.
Image attached

‎2018 May 03 1:38 PM
Did you try to use: node_selection_mode = node_sel_mode_multiple and events such as selection_changed followed by call of method get_selected_nodes.
‎2018 May 03 1:55 PM
tried but was unsuccessful selecting multiple nodes as shown in question screen shot.
could you please give sample code ?
‎2018 May 03 2:35 PM
‎2018 May 03 3:16 PM
RDSVAS_TRANSPORT_ORGANIZER_C01 is it report ? seems to be doesnt exists.
‎2018 May 03 3:23 PM
(Fond on one of my systems) In this report, some data is displayed in a tree on left panel, and on a ok_code f the dynpro menu its call the method get_selected_nodes and copy the selected nodes to an alv grid on right panel.
List of reports/class depends on your version and of the solutions activated on your system(s) so you should perform the where used on such methods of the single tree class on your system to find some samples.
‎2018 May 03 3:25 PM
I not sure
I am getting below message in SE38
Message no. DS017
‎2018 May 04 6:46 AM
‎2018 May 03 2:12 PM
Set the selection mode to multiple upon instantiation of the tree object.
CREATE OBJECT g_tree
EXPORTING
node_selection_mode = cl_simple_tree_model=>node_sel_mode_multiple
...
If you run demo program SAPSIMPLE_TREE_MODEL_DEMO and change the node selection mode to multiple in debug, you'll see multiple child nodes may be selected.
Cheers,
Amy
‎2018 May 03 2:22 PM
Yes node_selection_mode = cl_simple_tree_model=>node_sel_mode_multiple by this we can select multiple nodes but how we get values of node keys ?
where as in node_sel_mode_single in the event NODE_DOUBLE_CLICK click used to get the node key but in node_sel_mode_multiple which event triggers and how to get both nodes node key ?