Skip to Content
0
Former Member
Nov 11, 2006 at 12:08 AM

cl_gui_alv_tree->get_selected_item NOT returning after 1st try.

14 Views

HI Guys,

I am really puzzled... I have a Tree report (using class cl_gui_alv_tree). Under it, I have two event receiver (namely: tree receiver and a toolbar receiver)... So far very standard.

In the tree receiver, I have recievers for double clicks, and etc. In the method I call

cl_gui_alv_tree->get_selected_item which works perfectly fine.

Now, I added a button to the toolbar, and under the toolbar receiver I added additional code for that... In the method, I also call cl_gui_alv_tree->get_selected_item.

But, it only works the first time... Everytime afterwards that method does not return any value.

Help? I don't know what I did wrong, and I did flush and call frontend_update method after I call call cl_gui_alv_tree->get_selected_item.

Any one has any clue why the call cl_gui_alv_tree object is behaving like this?

Thanks all,

Charlie