Skip to Content
0
Former Member
Apr 23, 2008 at 03:42 PM

Trigger an event when user selects a row in CL_GUI_ALV_GRID?

1888 Views

Hi,

I'm trying to find an event which is triggered when a user selects a row in the ALV grid. I want to add my own code in to add up the total values of selected lines, but can't find any event which will trigger my method.

I found CLICK_ROW_COL but it's protected so when I try and add a method for it:

  PROTECTED SECTION.
    METHODS:
    select_row
        FOR EVENT click_row_col OF cl_gui_alv_grid.

I get the syntax error:

Access to protected event "CLICK_ROW_COL" is not allowed.

Am I using the right event? Am I implementing it correctly?

Any help appreciated. Thanks in advance.

Gill