02-05-2009 7:33 PM
Hello Gurus,
I am working on ALV using standard ALV function module REUSE_ALV_GRID_DISPLAY. Now, To make the fields editale, I am using flag EDIT = 'X' in field catalog. This working fine.
Now, when the data is changed in ALV grid and user clicks on SAVE button that I have programmed in i_callback_usercommand, how can I get the changed data back from editable ALV so that I can change data in custom table ?
Please help.
Regards,
Rajesh.
02-05-2009 8:12 PM
Yes..The internal table that you passed to the function module REUSE_ALV_GRID_DISPLAY..will be updated automatically...after calling the check changed data method.
Thanks
Naren
02-05-2009 7:39 PM
02-05-2009 7:57 PM
I see that the method CHECK_CHANGED_DATA is used. I am also doing it as follows. But how do I get the changed data back in table. There are no table parameters in
CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
DATA: REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
IF REF_GRID IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = REF_GRID.
ENDIF.
IF NOT REF_GRID IS INITIAL.
CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
ENDIF.
Please guide
02-05-2009 8:06 PM
There is no need for table paramters , after the method check_changed_data you tables T_OUTTAB will have data with changed values
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
....
.....
tables
t_outtab = i_yhdr.
a®
02-05-2009 8:12 PM
Yes..The internal table that you passed to the function module REUSE_ALV_GRID_DISPLAY..will be updated automatically...after calling the check changed data method.
Thanks
Naren