ABAP中alv内表数据更新后实现刷新

alv实现刷新

FORM frm_user_command USING r_ucomm LIKE sy-ucomm
                           rs_selfield TYPE slis_selfield.
*刷新alv
  DATA:lob_grid TYPE REF TO cl_gui_alv_grid.
  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
      e_grid = lob_grid.
  CALL METHOD lob_grid->check_changed_data.
  rs_selfield-refresh = 'X'.
  rs_selfield-col_stable = 'X'.
  rs_selfield-row_stable = 'X'.

  CASE r_ucomm.
    WHEN  '&BJB'.
*      MESSAGE s000(1) WITH '建立报工' DISPLAY LIKE 'E'.
      PERFORM frm_dealdata USING gt_data. "报工处理
  ENDCASE.

  rs_selfield-refresh = 'X'.
  CALL METHOD lob_grid->refresh_table_display.
ENDFORM.

你可能感兴趣的:(ABAP中alv内表数据更新后实现刷新)