转自:http://blog.sina.com.cn/s/blog_73bb07310100o0m5.html
实现的功能:当点击screen上的一个check box 或者Radio Button时,隐藏或者显示某些parameters或select options。
例子如下:
PARAMETERS: p_dl AS CHECKBOX USER-COMMAND abc,
p_file TYPE localfile. " TYPE LOALFILE means can input more character
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name CP '*P_FILE*'.
IF p_dl IS INITIAL.
screen-active = 0. " File Parameter Invisible
ELSE.
screen-active = 1. " File Parameter Visible
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
p_file TYPE localfile. " TYPE LOALFILE means can input more character
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name CP '*P_FILE*'.
IF p_dl IS INITIAL.
screen-active = 0. " File Parameter Invisible
ELSE.
screen-active = 1. " File Parameter Visible
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.