cancel
Showing results for 
Search instead for 
Did you mean: 

how can i selected rows that checklist column is cheked in cl_gui_alv_grid ?

former_member635273
Participant

Accepted Solutions (0)

Answers (1)

Answers (1)

venkateswaran_k
Active Contributor
0 Kudos

Hi

You call the following function to refresh your grid - and then you can check for the chkbox value as X and quantity > 0 in the loop of that internal table

DATA: e_grid TYPE REF TO cl_gui_alv_grid.


  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
      e_grid = e_grid.
  CALL METHOD e_grid->check_changed_data.
  "update_alv_tab
  CALL METHOD e_grid->refresh_table_display.
Sandra_Rossi
Active Contributor
0 Kudos

Calling GET_GLOBALS_FROM_SLVC_FULLSCR is useless in the context of the question, because the OP says he's using CL_GUI_ALV_GRID already. This function module is useful only if you use REUSE_ALV_GRID_DISPLAY, CL_SALV_TABLE and so on.

The second part is correct (CHECK_CHANGED_DATA) because it transfers the edited values from the frontend to the internal table selected for display (SET_TABLE_FOR_FIRST_DISPLAY).

The third part is useless too (REFRESH_TABLE_DISPLAY) because it's just used to transfer changes (calls to various CL_GUI_ALV_GRID methods) to the frontend.

venkateswaran_k
Active Contributor
0 Kudos

hmm, okay Sandra