Skip to Content
1
Former Member
Jan 13, 2012 at 11:32 AM

ALV: Issue with double click event after sorting the ALV

2393 Views

Hello Experts,

I have an internal table that populates an ALV grid. When the user doubleclicks a row, my method HANDLE_DOUBLE_CLICK returns the e_row-index value from the ALV Grid. I use this index value to read the internal table, then retrieve additional data.

My problem is the user may sort the ALV grid before double clicking on a line. If this happens my internal table is not sorted to match the ALV grid, so reading the internal table with the e_row-index value returns the wrong information.

When the double click event occurs, is it possible to capture the value in column 1 instead of a value for e_row-index?

There is one more paramter in HANDLE_DOUBLE_CLICK for row id. It is coming blank in debugging . what is the purpose of this parameter and how i can make use of it ?

Regards

Vivek