创建alv grid时,有时需要修改alv中的数据。
修改后如何将数据传到alv多所对应内表?
我们在alv的usercommand事件中可以这样写:
FORM usercommand USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
DATA: lr_grid TYPE REF TO cl_gui_alv_grid.
DATA l_tabix LIKE sy-tabix.
CALL FUNCTION ‘GET_GLOBALS_FROM_SLVC_FULLSCR’
IMPORTING
e_grid = lr_grid.
CALL METHOD lr_grid->check_changed_data.
selfield-refresh = ‘X’.
selfield-row_stable = ‘X’.
selfield-col_stable = ‘X’.
*other
ENDFORM.