SELECTION-SCREEN: END OF BLOCK B2. SELECTION-SCREEN: BEGIN OF BLOCK B3 WITH FRAME.PARAMETERS : R1 RADIOBUTTON GROUP D1 DEFAULT 'X' USER-COMMAND SINGLECLICK, R2 RADIOBUTTON GROUP D1 .SELECTION-SCREEN: END OF BLOCK B3. 选择r1 的时候只显示B1;r2时候只显示B2 AT SELECTION-SCREEN OUTPUT. IF ...
AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF SCREEN-GROUP1 = 'SC1'. SCREEN-INTENSIFIED = '1'. MODIFY SCREEN. CONTINUE. ENDIF. IF SCREEN-GROUP1 = 'SC2'. SCREEN-INTENSIFIED = '0'. MODIFY SCREEN. ENDIF. ENDLOOP. 3、系统将屏幕输出到用户端,用户就可进行交互操作了。也就是PAI处理,其分...
除了数据验证检查之外,还可以使用at selection-screen事件调用警告消息、GUI 状态更改甚至弹出窗口。 例如如下代码: AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF p_r4 NE 'X'. CASE screen-group1. WHEN 'SC3'. screen-active = '0'. MODIFY SCREEN. ENDCASE. ELSE. CASE screen-group1. WHEN 'SC1'...
SELECTION-SCREEN: END OF BLOCK B3. 选择r1 的时候只显示B1;r2时候只显示B2 AT SELECTION-SCREEN OUTPUT. IF R1 = 'X'. LOOP AT SCREEN. IF SCREEN-GROUP1 = 'PP'. SCREEN-ACTIVE = '0'. ENDIF. MODIFY SCREEN. ENDLOOP. ELSEIF R2 = 'X'. LOOP AT SCREEN. IF SCREEN-GROUP1 = 'OO'. SCREE...
MODIFY SCREEN. ENDLOOP. ENDIF. Modiy屏幕的时候,如果屏幕有必输字段则不能修改,只有把必输项输入值后才能修改屏幕,需要有所取舍; 注意: PARAMETERS:R1RADIOBUTTON GROUPD1DEFAULT'X'USER-COMMANDSINGLECLICK,红色这一段话必须有,否则不能动态修改屏幕;选择一次单选框就会触发一次atselection-screen output,实现动态...
4.AT SELECTION-SCREEN OUTPUT: 这是一个事件块,在选择屏幕输出之后触发。在这个事件块中,屏幕的属性可以被修改。 5.LOOP AT SCREEN和MODIFY SCREEN: 通过LOOP AT SCREEN循环遍历选择屏幕上的所有屏幕元素。 CASE screen-group1用于检查屏幕元素所属的组。这里有两个组:TY1和TY2。
SELECTION-SCREEN . PARAMETERS : 字段 TYPE 参考数据元素 MODIF ID 分组 . select-option : 字段 for 参考数据元素 modif id 分组 . at SELECTION-SCREEN OUTPUT . loop as screen . CASE 'X'. WHEN 分类1. IF screen-group1 EQ '分组1'.
AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN . '当 C2 没有钩选时,其他元素都设置为可输入 IF screen-name <> 'C2' AND c2 IS INITIAL . screen-input = 1. MODIFY SCREEN. ELSEIF screen-name <> 'C2' AND c2 IS NOT INITIAL . screen-input = 0.'C2钩选时,所以屏幕输入元素禁止输入 MODIFY ...
atSELECTION-SCREENOUTPUT.LOOPATSCREEN.IFscreen-name='S_VKORG-LOW'ORscreen-name='S_SPART-LOW'.screen-required='2'."假必输MODIFYSCREEN.ENDIF.ENDLOOP. 真必输使用方式, OBLIGATORY . 代码语言:javascript 复制 SELECT-OPTIONS:S_AUARTforVBAK-AUARTOBLIGATORY. ...
MODIFY SCREEN.ENDLOOP.AT SELECTION-SCREEN.CLEAR sy-ucomm.关于程序的说明:(1)该程序可以根据用户选择了P1或P2,决定显示工厂还是物料号在屏幕上;(2)这里 USER-COMMAND uc是关键,它代表用户点击 RADIOBUTTON GROUP g1上的任一选项时,都将触发PAI,并且Function code为 'UC'。在CLEAR sy-ucomm....