Application Development 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: 

Edit ALV - Capture modified data

Murali_Shanmu
Active Contributor
0 Kudos

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.

3 REPLIES 3

Murali_Shanmu
Active Contributor
0 Kudos

Solved It!!!

0 Kudos

please can u post how u solved so that everyone will benefit from it when they have similiar requirement .....

0 Kudos

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.