cl_gui_cfw=>flush.
在data_changed_finished里面触发
"用法一:
refresh_table_display"虽然刷新的界面,但是sap gui并不是实时更 新,而是将更新的结果放在缓存中,手动调用cl_gui_cfw=>flush才能触发sap gui更新界面,看到刷新的结果。
call method cl_gui_cfw=>flush
exceptions
cntl_system_error = 1
cntl_error = 2.
"用法二:
"在oo的alv方法中,使程序重新走pbo
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'refresh'.
CALL METHOD cl_gui_cfw=>flush.
"用法三:
FORM frm_refresh_dlysk_display USING pv_p_refresh.
IF g_grid_dlysk IS INITIAL.
EXIT.
ENDIF.
REFRESH grid.
CALL METHOD g_grid_dlysk->refresh_table_display
EXPORTING
i_soft_refresh = pv_p_refresh.
CALL METHOD cl_gui_cfw=>flush.
ENDFORM. " FRM_REFRESH_DLYSK_DISPLAY