‎2008 Dec 02 4:19 AM
I am displaying data in ALV grid. if the user press the change button which is there on the application toolbar, the alv will be in eduatable mode abd the user can change the data. when press save the data will be saved in some ztable. I have written the code in the below method.
Changed data on the cell
METHOD handle_data_changed.
PERFORM data_changed USING er_data_changed.
ENDMETHOD.
But if i change something in the alv forget to press enter button and directly press the save button which is there on the standard tool bar, the data which i have changed is not saving.
i change some data and press enter button , then this avobe event is fired and change the data.
How do i change the data without clicking on save button,
Regards,
Ranjan
‎2008 Dec 02 5:01 AM
Hi pryaranjan
if you are using cl_gui_alv_grid class to create alv then before save button processing, call method
refresh_table_display of class cl_gui_alv_grid and then save the changed records.
Thanks
Vishal Kapoor
‎2008 Dec 02 5:09 AM
Hi Priyaranjan ,
In both the clicks use this statement.
CALL METHOD gp_alv_grid->CHECK_CHANGED_DATA.
I hope it defenitely works.
Apprise me if helpful.
Regards
Satish
‎2008 Dec 02 5:22 AM
‎2008 Dec 02 5:24 AM
Hi Priyaranjan
Take the help of BCALV_EDIT_01
Hope this would solve your problem
Regards
Ramchander Rao.k