2010 Jul 28 5:25 AM
my alv has a editable checkbox and field... i also have a customized delete button in ALV
when i press delete i wanted to delete delete the items in which the checkbox i marked, but my internal table is not updated, can you advice me how to refresh the ALV grid?
i am using FM reuse alv grid display..
thanks -
blue
2010 Jul 28 5:40 AM
hi ,
try to use this
FORM f_user_command USING p_ucomm LIKE sy-ucomm
p_selfield TYPE slis_selfield .
WHEN '&EXP'.
p_selfield-refresh = 'X'.
2010 Jul 28 5:56 AM
Hi,
In your form for User Command
write following:
DATA ref1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
Case 'User-Command'.
......
Endcase.
or
data : i_grid_settings type lvc_s_glay.
"Calling ALV grid for display
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy-repid
i_callback_user_command = i_callback_user_command
i_grid_settings = i_grid_settings
is_layout = is_layout
it_fieldcat = it_fieldcat
tables
t_outtab = it_final
"for call back values from editable grid cells
i_grid_settings-edt_cll_cb = 'X'.
May it helps you.
Regards.
DS.