字段动态隐藏
字段动态显示
给对应字段加上MODIF ID 即可
SELECT-OPTIONS:S_ZSHNAM FOR zmmt410-zbgy MODIF ID m1,
S_ZSHDAT FOR SY-DATUM MODIF ID m1.
然后在
AT SELECTION-SCREEN OUTPUT.
下面初始化SCREEN
FORM FRM_INIT_SCREEN .
LOOP AT SCREEN.
IF R1 = 'X'.
IF SCREEN-GROUP1 CS 'M1'.
SCREEN-ACTIVE = '0'."不显示
ELSE.
SCREEN-ACTIVE = '1'."显示
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDFORM.
标签:动态显示,SCREEN,ABAP,MODIF,ACTIVE,屏幕,ID From: https://www.cnblogs.com/huangqingdong/p/16595228.html