2007 Sep 17 12:43 PM
Hello,
Could you pls. assist in the following:
1) I have an ALV tree on the left hand side.
2) I have registered double_click event on ALV tree. If the user double clicks on the tree node a detail ALV grid appers on the right hand side.
3) I have a refresh button also in which I rebuild the data in the ALV tree.
4) Now if the we refresh and then double click on the tree node then the node_double_click event of tree which returns node_key_sender parameter, returns the key values which are incremented beginning from the end of first time display. Say first time the tree has 100 entries and I double click on 1st node, then the event returns node_key as 1. Now after refresh again I double click on 1st node the event returns node_key as 101 and so on with each subsequent refresh.
On refresh button I am clearing my tree table and building it again.
Any pointers in this regard are appreciated.
Thanks.
Regards,
Gajendra.
2007 Sep 17 1:12 PM
when ur appending the node data into an internal table, u have to append it to also to another internal table
and u have to read this table in the method of the double click,
i think this might help
2007 Sep 17 1:16 PM
The ALV tree method:
CALL METHOD sender->get_children
EXPORTING
i_node_key = node_key
IMPORTING
et_children = lt_sp_child_nodes.
It returns me the child nodes for the node key.
The lt_sp_child_nodes contains the indexes of the node childrens which are read from another internal table based on key.
My problem is that this node key is different after refresh (as indicated below).
Regards,
gajendra.
2007 Sep 17 1:20 PM
if u have any further questions u can just mail me at
<email removed by moderator>