‎2020 May 02 4:19 AM
Hello Experts,
I've searched now for a long time but still didnt find a solution.
I've created an object of cl_gui_alv_grid, add a new function key to toolbar (mass). User can change data in grid line by line or can make use of the mass button as well.
I've implemented the event user_command to receive the user command of the the MASS key. I change one field - same field as user can click line by line.
Is it possible to trigger now the data_changed event? I dont want to implement the logic of the data_changed method twice or call the method itself again.
I tried different ways but it wont run...
Do you have any ideas or examples?
‎2020 May 02 6:22 AM
Generally speaking, you may trigger directly the method which handles any event.
But concerning data_changed, the instantiation of the parameter er_data_changed may be tricky so maybe it's easier to use the following workaround with a common method with simplified custom parameters.
The other workaround is to create a common method which is called by both the data_changed and user_command handlers.