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: 

REFRESH ALV

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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'.

Former Member
0 Kudos

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.