Skip to Content
1
Former Member
Sep 17, 2009 at 09:23 AM

Refresh Data REUSE_ALV_GRID_DISPLAY

14479 Views

Dear all

I have an ALV grid using REUSE_ALV_GRID_DISPLAY and I change data during execution.

How can I now force the refresh of the grid? (Can I for example force myself the use of the standard refresh button)

I tried for ex.

FORM user_comm USING l_ucomm LIKE sy-ucomm l_selfield TYPE slis_selfield.

PERFORM update_alv_tab.

endform.

FORM update_alv_tab .

DATA : e_grid TYPE REF TO cl_gui_alv_grid.

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

IMPORTING

e_grid = e_grid.

CALL METHOD e_grid->check_changed_data.

"update_alv_tab

CALL METHOD e_grid->refresh_table_display.

ENDFORM. " UPDATE_ALV_TAB

it seems to work on debug, but when i start my program normal, it closes SAP Gui with an error message!!!! not bad.

Any other ideas ?

Herbert