06-12-2009 3:21 AM
Hi,
I am using cl_gui_alv_grid to show an ALV. I am able to edit the ALV. I have used the following code to register the edit event too.
call method g_p_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>MC_EVT_MODIFIED.
create object g_event_receiver.
set handler g_event_receiver->handle_data_changed for g_p_grid.
The only issue that I face is, the user needs to hit the enter key inorder to store the modified values back in the internal table. Is there any way by which, the modified values can go back into the Internal table with as soon as the user changes the values.
Any suggestions will be appreciated.
Please note, I am able to edit an ALV and update the modified values into the tables. I have gone thru the exisitng examples.
Murali.
06-12-2009 3:44 AM
06-12-2009 4:15 AM
please can u post how u solved so that everyone will benefit from it when they have similiar requirement .....
06-14-2009 11:32 AM
I was actually editing a cell using lvc_s_styl properties (cl_gui_alv_grid=>mc_style_disabled/enabled). I added the edit='X' in the fieldcatalog and it started to react to my tabout event the moment I change the cell value.
Cheers.