Skip to Content
0
Jul 22, 2009 at 10:54 AM

ALV Grid refresh not working properly

1714 Views

Hi all,

i want to refresh my alv-grid but after update of my internal-table and setting the 3 fields of rs_selfield ( rs_selfield-refresh = 'X', rs_selfield-col_stable = 'X', rs_selfield-row_stable = 'X'), the method cl_gui_alv_grid-refresh_table_display only shows the data of my internal Table BEFORE my update... (i checked in Debugging the content of the table mt_outtab->*).

I wanted to add the fact, that i already checked ALL forum threads with keywords ALV GRID REFRESH and NONE of them solved my issue.. (all Reports of Michel Prioud for instance, the SLIS-ones)

*Here's an extract of my USERCOMMAND*_

CASE p_ucomm.
(...)
    WHEN '&AKTU'.
      PERFORM itab_actualize CHANGING gt_outtab. "<- actualization of my internal table
      rs_selfield-refresh = 'X'.
      rs_selfield-col_stable = 'X'.
      rs_selfield-row_stable = 'X'.
(...)
when others.
endcase.

Here's my ALV-Display-Call

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_buffer_active             = 'X'
        i_callback_program          = g_callback_program
        i_callback_pf_status_set    = g_callback_pf_status_set
        i_callback_user_command     = g_callback_user_command
        i_callback_top_of_page      = g_callback_top_of_page
        i_callback_html_top_of_page = g_callback_html_top_of_page
        i_grid_title                = g_grid_title
        is_layout                   = gs_layout
        it_fieldcat                 = gt_fieldcat
        it_excluding                = gt_excluding
        it_sort                     = gt_sort
        it_filter                   = gt_filter
        i_save                      = g_save
        is_variant                  = gs_variant
        it_events                   = gt_events
        it_event_exit               = gt_event_exit
      TABLES
        t_outtab                    = gt_outtab
      EXCEPTIONS
        program_error               = 1
        OTHERS                      = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

Any idea on a possible explanation for this????

Thx in advance for any clue and greets from France...