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

cl_gui_alv_grid / user_command -> data_changed

Former Member
0 Likes
828

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?

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
615

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.