2014 Jan 20 10:40 AM
Hi All,
I have a requirement where i need to get a flag if data is changed in ALV Grid.
I used CL_GUI_ALV_GRID_BASE as a super class to my ZCL_GUI_ALV_GRID_BASE class and used a protected method GET_GRID_MODIFIED of CL_GUI_ALV_GRID_BASE for getting a flag to check data is modified or not.
Here i am getting this flag as true for some ALV grids and space for some other grids. Do we need to enable any flags in PBO to get this flag when ever user do any changes on the grid content ?
Regards,
Praveen
2014 Jan 20 10:50 AM
instead of setting up a flag value you can register edit event so that whenever there is a a change in alv table the system reacts .
To register the edit event, call the method REGISTER_EDIT_EVENT
CALL METHOD cont_editalvgd -> register_edit_event
Exporting
I_event_id = cl_gui_alv_grid => mc_evt_modified.
2014 Jan 20 10:57 AM
i know this register_edit_event process. i want to know for which actions GET_GRID_MODIFIED this protected method return flag ?
Regards,
Praveen