在处理用户命令的地方写,在里面将那个字段都赋值为X就行了,亲测通过:
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_01'
LOOP AT ITAB.
CHAIN.
FIELD WA_ITAB-COL1.
FIELD WA_ITAB-COL2.
endchain.
ENDLOOP.
MODULE TC_01_USER_COMMAND.
*&SPWIZARD: MODULE TC_01_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC_01_CHANGE_COL_ATTR.
*上面都是自动生成
MODULE USER_COMMAND_9001. “就在这里写
MODULE USER_COMMAND_9001 INPUT.
CASE OK_CODE.
WHEN 'SAVE'.
LOOP AT ITAB.
ITAB-SEL = 'X'.
MODIFY itab.
ENDLOOP.
WHEN '&F03' OR '&F08' OR '&F12' .
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_9001 INPUT
在PAI中用FIELD...MODULE...试试