在PBO循环内表中取得TABLE CONTROL的COLS属性,利用它本身是个内表的特点,循环找到该列修改它,修改完后,写回COLS内表。
PBO:
LOOP AT 内表
WITH CONTROL ztc_0100-current_liine.
MODULE ztc_010_get_liines.
ENDLOOP.
写在MODULE ztc_010_get_lines.
DATA: ls_area type cxtab_column.
Loop at zct_0100-cols into ls_area.
If ls_area-screen-name eq ‘IT_SPFLI-CARRID’.
ls_area-screen-input = ‘0’.
ls_area-invisible = ‘X’.
modify zct_0100-cols from ls_area.
Endif.
ENDLOOP.