Skip to Content
0
Former Member
Sep 12, 2005 at 11:32 AM

rs_selfield-tabindex doesn't return index in output table.

1088 Views

Hi All,

In my ALV grid, a user can doubleclick on an icon. Things should happen with use of values in other columns of the same row.

It seems that rs_selfield-tabindex returns the rowno as displayed and not the corresponding rowno of my output table. Resulting in wrong values after the grid is sorted.

How can I determine the row in my table from the selected cell in the grid?

Any help would by appriciated.

B E R T

PS. Some further details:

I'm using the REUSE_ALV_GRID_DISPLAY fm,

I've tried without luck the get_current_cell method after retrieving the grid control via GET_GLOBALS_FROM_SLVC_FULLSCR,

Here's a code-snipplet:

READ TABLE gt_zpvw INTO ls_zpvw INDEX rs_selfield-tabindex.

CHECK sy-subrc IS INITIAL.
MOVE: ls_zpvw-belnr TO ls_thead-tdname(10),
      ls_zpvw-gjahr TO ls_thead-tdname+10(4).
 CALL FUNCTION 'READ_TEXT'
       EXPORTING
            id       = '0001'
            language = sy-langu
            name     = ls_thead-tdname
(...)