I'm displaying my internal table with an OO ALV and I'm trying to handle the data_changed event in order to do some checking before actually modify my internal table.
this is the code of how I was planing to do that:
handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed
e_onf4
e_onf4_before
e_onf4_after
e_ucomm.
METHOD handle_data_changed. * IF er_data_changed->mt_mod_cells-fieldname = 'COD_M'. * do something * else if er_data_changed->mt_mod_cells-fieldname = 'QUANTIDADE'. * do something else * endif. * alv->refresh_table_display. ENDMETHOD. "handle_data_changed
but it gives me this error:
"MT_MOD_CELLS" is a table without a header line and therefore has no component called "FIELDNAME".
My question is, how can access the cell that is being modified, and the new data?