SAP ABAP动态控制屏幕的输入字段,隐藏,显示,是否可以输入

例子
默认手动单选按钮选中时,显示工厂,物料,供应商输入字段,
点击 自动 时,显示增量日期输入字段,
接口编号字段一直不可用,
在这里插入图片描述
在这里插入图片描述

代码

selection-screen begin of block b1 with frame title text-001.
select-options:s_werks for eord-werks modif id md1,
s_matnr for eord-matnr modif id md1,
s_lifnr for eord-lifnr modif id md1,
s_date for sy-datum modif id md2.
selection-screen end of block b1.

selection-screen begin of block b2 with frame title text-002.
parameters:rb_manu radiobutton group rb01 default ‘X’ user-command fun1 modif id r1,
rb_auto radiobutton group rb01 modif id r2.
selection-screen end of block b2.

selection-screen begin of block bk02 with frame title text-003.
parameters: p_int type c length 10 default ‘MMIABC’.
selection-screen end of block bk02.

at selection-screen output.
loop at screen.
case ‘X’.
when rb_manu.
case screen-group1.
when ‘MD1’.
screen-active = ‘1’.
when ‘MD2’.
screen-active = ‘0’.
endcase.
when rb_auto.
case screen-group1.
when ‘MD1’.
screen-active = ‘0’.
when ‘MD2’.
screen-active = ‘1’.
endcase.
endcase.
if screen-name = ‘P_INT’.
screen-input = 0.
endif.
modify screen.
endloop.

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页