Skip to Content
Former Member
Feb 28, 2006 at 12:01 PM

Double click event of alv grid control


Hi everyone

I have a screen on which I have placed two ALV grid controls. Each one contains (different) summary data and I would like to allow the user to double click on either grid to open a screen that contains detail information based on the row they double-clicked on. I have managed to do all of this including setting up event handler methods etc. However, the problem I have is that when the double_click event of the cl_gui_alv_grid class is triggered, the detail screen will always display data that is linked to the second grid. I have stepped through the debugger and it looks as if both grids receive the double_click event in sequence - which makes sense. I have tried various approaches such as creating sub-classes of cl_gui_alv_grid but of course they always inherit the double_click event and their methods get triggered when the event happens. I wonder if there is a way of identifying which grid instance was double-clicked and using this within the event handler logic? Alternatively, this could be an insane way of approaching the problem! Either way, any help would be greatly appreciated.

Kind regards