有時候ALV在顯示時會做一些edit來更改itab的資料,
更改完成後,最好做一個ALV線上重新整理的動作,否則雖然將ITAB異動的
但ALV畫面上的資料仍然不會變化
DATA: lr_grid TYPE REF TO cl_gui_alv_grid.
*==============================================
*===========ALV傳回判斷===================================
*==============================================
FORM USRCMD_1 USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
PERFORM RELNEW CHANGING rs_selfield-refresh.
ENDFORM.
FORM RELNEW CHANGING rs_selfield-refresh.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lr_grid.
CALL METHOD lr_grid->check_changed_data.
rs_selfield-refresh = 'X'.
ENDFORM.
全站熱搜
留言列表