Trigger ALV data_change event manual
As we know, when we changed something in the alv grid, event data_changed will be triggered, and we can do some custom check.
but do you face this situation, after you changed this alv and push on some user command, like ‘SAVE’, the data_changed event will not be triggered again, because no cell is changed in alv grid, but actually, you want to trigger it and do something you want.
below i will give you 1 solution to trigger it by compulsion.
in PAI, use method IF_CACHED_PROP~SET_PROP of class CL_GUI_ALV_GRID to set property ‘GridModified’ as modified, then call CHECK_CHANGED_DATA of CL_GUI_ALV_GRID, data_changed event will be triggered.
1.add code in PAI
2.Run your program and update data, then save.
3.Push ‘SAVE’, event will be triggered.
This is my first time to write blog, please give your comment if you also have some experience on this topic. Thanks.