‎2005 Oct 21 8:46 AM
Hello all,
I've have in an ALV list an editable column, the proble is that when the cell values are changed the data table remains the same. Is there a method for cl_gui_alv_grid class or another way to update the data table form ALV list.
Lots of thanks
Bogdan
‎2005 Oct 21 8:50 AM
‎2005 Oct 21 8:50 AM
‎2005 Oct 21 8:55 AM
I've try, but this event is not trigger,
I've think that I omit something when creating the ALV
‎2005 Oct 21 9:24 AM
Let us know your code to manage the grid event
Max
‎2005 Oct 21 9:37 AM
I've solved with data_changed event, I've forgot to register event = cl_gui_alv_grid=>mc_evt_modified.
Thank you
‎2005 Oct 21 9:44 AM
first check whether data is changed .if data is changed then get the changed value from the cell and modify the internal table accordingly.
check whether following code works......
call method w_obj_grid1->check_changed_data
importing
e_valid = lw_valid.
if lw_valid = 'X'.
call method pr_data_changed->get_cell_value
exporting i_row_id = row_id
i_fieldname = fieldname
importing e_value = get value here.
loop at t_data into fs_data.
if sy-tabix = row_id.
modify t_data from fs_data.
endif.
endloop.
call method w_obj_grid1->refresh_table_display.