12-03-2007 2:11 PM
hi all
in my alv, i have created 2 input enabled fields to be input or modify when the first list is displayed, but these two fields are not updating i mean internal table is not holding data of these 2 input enabled fields, other fields are updating.
it is working fine when i use REUSE_ALV_LIST_DISPLAY', but when i use
REUSE_ALV_GRID_DISPLAY FM the above problem starts.
i have to use only REUSE_ALV_GRID_DISPLAY fm.
could any one through light on this.
thanx
rocky
12-03-2007 2:23 PM
Hi,
Check this . You need to write code for "i_callback_user_command"
*&---------------------------------------------------------------------*
* Form f_user_command1 *
*&---------------------------------------------------------------------*
* This form will handle the user command from fm REUSE *
*----------------------------------------------------------------------*
form f_user_command1 using p_ucomm type sy-ucomm
rs_selfield type slis_selfield.
data p_ref1 type ref to cl_gui_alv_grid.
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
e_grid = p_ref1.
call method p_ref1->check_changed_data.
case p_ucomm.
when '&DATA_SAVE'.
" Write your code for save
endcase.
rs_selfield-refresh = c_x. " Grid refresh
endform. " F_user_command1
*
a®