Question:
Hi gurus,
I am currently working on editable interactive ALV using classes . I have set a save button on GUI status with ok code SAVE. I have created a method handle_user_command to handle the save event to happen. I dont know how to handle the save button by using the method.
* method to handle user command
methods:
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
Attached beow is a sample code for event enter when i make changes to the editable ALV and press enter this method would be called and i could handle the data save. But i wanted to handle the data save using SAVE button on the application tool bar but not by pressing ENTER.
call method g_grid->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>MC_EVT_ENTER.
Answer:
Hi gurus,
I am currently working on editable interactive ALV using classes . I have set a save button on GUI status with ok code SAVE. I have created a method handle_user_command to handle the save event to happen. I dont know how to handle the save button by using the method.
* method to handle user command
methods:
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
Attached beow is a sample code for event enter when i make changes to the editable ALV and press enter this method would be called and i could handle the data save. But i wanted to handle the data save using SAVE button on the application tool bar but not by pressing ENTER.
call method g_grid->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>MC_EVT_ENTER.
see help on SET HANDLER command
Answer:
Hi, take a look on this example program: BCALV_GRID_05.
Regards,
Remus.