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: 

hi all alv input enabled fields are not updating in internal table

Former Member
0 Kudos

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

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

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
*