Skip to Content
0
Jan 22, 2019 at 02:32 PM

CL_GUI_ALV_GRID Editable Change other Cells based on Input

1557 Views

Hello,

Have an Input enabled ALV Grid (CL_GUI_ALV_GRID). In the Event DATA_CHANGED I want to set a value in some other cells depended on the User Input. For that I use the method MODIFY_CELL( ) of parameter ER_DATA_CHANGED (CL_ALV_CHANGED_DATA_PROTOCOL). However the Value I want to pass is not taken over and indeed at the end of the MODIFY_CELL( ) I see for me not very understandable code were indeed the value gets lost:

ls_modi-row_id = i_row_id.
ls_modi-tabix = i_tabix.
ls_modi-fieldname = i_fieldname.
* ls_modi-value = i_value.
clear ls_modi-value.

append ls_modi to mt_good_cells.
append ls_modi to mt_mod_cells.
endif.
endif.

Anybody an idea how to prevent this?

Dirk