定义
DATA:t_tab_header LIKE t_tab.
修改以下内容:
*&SPWIZARD: INPUT MODULE FOR TC 'T_TC'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MODIFY TABLE
MODULE t_tc_modify INPUT. "Tab-control生成后需要修改此处才能保存进内表
READ TABLE t_tab INTO t_tab_header INDEX t_tc-current_line.
IF sy-subrc = 0.
MODIFY t_tab INDEX t_tc-current_line.
ELSE.
APPEND t_tab.
ENDIF.