1.SELECTION-SCREEN BEGIN OF BLOCK和SELECTION-SCREEN END OF BLOCK: 这些语句定义了三个不同的屏幕块(Block)。每个块都有一个标题,并包含不同的输入字段。这些块可用于在用户界面上组织和分组相关的参数和选择选项。 2.PARAMETERS和RADIOBUTTON: PARAMETERS语句用于定义两个参数P1和P2,它们是单选按钮(RADIOBUTTON)。
*第二个RADIOBUTTON SELECTION-SCREEN POSITION 11. "11是RADIOBUTTON横坐标 PARAMETERS:s_limit TYPE c RADIOBUTTON GROUP g1. SELECTION-SCREEN COMMENT 12(7) TEXT-004 FOR FIELD s_limit."12是文本横坐标,7是文本长度 SELECTION-SCREEN END OF LINE. 下拉框 图例: 代码: SELECTION-SCREEN BEGIN OF BLOCK ...
p_radio1RADIOBUTTONGROUP g1USER-COMMAND selDEFAULT'X',"显示名字 p_radio2RADIOBUTTONGROUP g1."显示年龄 AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF p_radio1 EQ 'X' AND SCREEN-GROUP1 = 'M1'. SCREEN-ACTIVE = '1'. "显示 MODIFY SCREEN. ELSEIF p_radio2 EQ 'X' AND SCREEN-GROUP1 ...
S_LFART FOR LIKP-LFART MODIF ID FG. "8.交货类型PARAMETERS:P_R1RADIOBUTTONGROUPG1USER-COMMANDUC1DEFAULT'X',"USER-COMMAND UC1 P_R2 RADIOBUTTON GROUP G1. SELECTION-SCREEN:END OF BLOCK B1. AT SELECTION-SCREEN OUTPUT. IF P_R1 IS NOT INITIAL. LOOP AT SCREEN. IF SCREEN-GROUP1 = 'SG'...
Solved: Hi all, I have a problem. Is there some way to creat selection-screen button (the same radiobutton group) in different blocks. the err message is [A parameter of
PARAMETERS: r_yj TYPE c AS CHECKBOX USER-COMMAND ucomm (这个是关键) MODIF ID m1,r_fyj TYPE c AS CHECKBOX USER-COMMAND ucomm MODIF ID m1.然后在事件 AT SELECTION-SCREEN OUTPUT. 这里面写代码就可以了
如果你是在选择屏幕上,选择某个按钮之后,动态输出radio button,只需要loop sreen设置相应的值即可实现改需求。如果是write的方式输出报表,建议使用WRITE XXX AS CHEKBOX,加校验的方式实现。write xx as radio button 没这种用法的。
AT SELECTION-SCREEN ON RADIOBUTTON GROUP one. CHECK sy-ucomm = 'RADIOGROUP01'. IF g1 = 'X'. PERFORM game_create USING 'B' 09 09 10. ELSEIF g2 = 'X'. PERFORM game_create USING 'I' 16 16 40. ELSEIF g3 = 'X'. PERFORM game_create USING 'E' 30 16 99. ...
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....
"屏幕的AT SELECTION-SCREEN OUTPUT也就不会被触发(非执行按钮的FunCode触发时都会刷新 "屏幕,所以再次显示屏幕时再次执行PBO) PARAMETERS p_rd1 RADIOBUTTON GROUP gp1 USER-COMMAND mxx."用来隐藏 p_lclfil PARAMETERS p_rd2 RADIOBUTTON GROUP gp1 DEFAULT 'X'."用来显示 p_lclfil ...