Hi,
I am using 'REUSE_ALV_GRID_DISPLAY' to generate a report where I will be displaying a number of record with a check box. Now if I check a row and click on 'save' it must update table. In this case, I am unable to populate the changes in the check box (i.e. checked or unchecked) in my internal table. Following code I have done in order to meet this check box functionality.
lwa_fieldcat-col_pos = c_col_pos1. "For check-box
lwa_fieldcat-fieldname = 'checkbox'
lwa_fieldcat-outputlen = 2.
lwa_fieldcat-checkbox = 'X'.
lwa_fieldcat-edit = 'X'.
lwa_fieldcat-seltext_l = ' '.
FORM user_command USING l_ucomm TYPE sy-ucomm
lwa_selfield TYPE slis_selfield.
CASE l_ucomm.
WHEN 'SAVE'.
DATA : ref_grid TYPE REF TO cl_gui_alv_grid,
lv_valid TYPE char1.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
CALL METHOD ref_grid->check_changed_data
IMPORTING
e_valid = lv_valid
Can anyone point out the mistake.