TABLECONTROL不能通过颜色代码来设置,只能通过INTENSIFIED属性设置表格行高亮显示。
用loop at screen.只能控制高亮显示,可输入部分是红色,不可输入部分是蓝色,高亮,一般为蓝色。loop at scren . screen-INTENSIFIED = 1. "1代表高亮 modify screen . endloop .
注意: LOOP SCREEN时 SCREEN 属性SCREEN-COLOR没有效果!!
在PAI事件中 , module z_table_setcolor.
module z_table_setcolor output.
read table g_z_table_itab into g_z_table_wa
index z_table-current_line.
if g_z_table_wa-color is not initial.
loop at screen.
screen-intensified = '1'. "设置行高亮显示
modify screen.
endloop.
endif.
endmodule.