Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Grid data_changed Check

Former Member
0 Likes
836

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

2 REPLIES 2
Read only

Former Member
0 Likes
536

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.

Read only

0 Likes
536

i know this register_edit_event process. i want to know for which actions GET_GRID_MODIFIED this protected method return flag ?

Regards,

Praveen