‎2021 Sep 16 11:54 AM
Hello everyone,
I am using oo alv and have editable fields in grid. When I change data then click green tick button my sy-ucomm = 'enter' is working fine and makes the change. But when I press enter on the keyboard, nothing happens because cursor remains in grid. So enter only works when cursor isn't in the grid. What should I do to pressing enter works after changing data?
‎2021 Sep 16 12:10 PM
‎2021 Sep 16 1:01 PM
‎2021 Sep 16 2:06 PM
I am using a template so some event were already registered.
CALL METHOD co_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified. CALL METHOD co_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.But it didn't change the problem despite I added 'ENTER' and perform in handle_user_command.
‎2021 Sep 16 1:26 PM
I guess you are talking about CL_GUI_ALV_GRID. You have to define a handler for event via method REGISTER_EDIT_EVENT with parameter mc_evt_enter, and create a handler for event DATA_CHANGED_FINISHED.