‎2011 Jul 15 11:33 AM
Hello,
I have an editable ALV and i modify my db table with this alv.
when i run the report and see the alv, i can make changes and modify the db table.
But after first change, alv doesnt see the othe changes, I change editable fields and save but when i debug i see no change at my internal table.
i refresh the internal table but after first change and save, this code doesnt work :
CALL METHOD go_grid2->check_changed_data.
Is there a trick that i dont know?
‎2011 Jul 15 1:26 PM
the code which i give above is for refresh, for data change try this declaration
SET HANDLER event_receiver->handle_data_changed FOR g_grid.
CALL METHOD g_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
when you clicked SAVE button first you must call this method : CALL METHOD g_grid->check_changed_data .
‎2011 Jul 15 12:13 PM
please write in ur alv fieldcatalog,
slis_selfield-refresh = 'X'.
‎2011 Jul 15 12:33 PM
‎2011 Jul 15 1:14 PM
you must use this method CALL METHOD g_grid->refresh_table_display.
‎2011 Jul 15 1:26 PM
the code which i give above is for refresh, for data change try this declaration
SET HANDLER event_receiver->handle_data_changed FOR g_grid.
CALL METHOD g_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
when you clicked SAVE button first you must call this method : CALL METHOD g_grid->check_changed_data .