ALV usercommand

2019-03-24  本文已影响0人  林之禾

http://tieba.baidu.com/p/2737510394
创建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.

上一篇 下一篇

猜你喜欢

热点阅读