分类: 数据库开发技术
2011-09-22 16:04:30
REPORT ZMM01.
TYPE-POOLS:slis.
DATA:rt_extab TYPE slis_t_extab.
INITIALIZATION.
START-OF-SELECTION.
APPEND 'BUT02' TO rt_extab.
SET PF-STATUS 'STANDARD' EXCLUDING rt_extab.
WRITE '两个按钮,右边那个被灰掉了'.
WRITE / '虽然显示但是不可以按'.
AT USER-COMMAND.
IF sy-ucomm = 'BACK'.
LEAVE PROGRAM.
ELSEIF sy-ucomm = 'BUT01'.
REFRESH rt_extab.
APPEND 'BUT01' TO rt_extab.
SET PF-STATUS 'STANDARD' IMMEDIATELY EXCLUDING rt_extab.
ELSEIF sy-ucomm = 'BUT02'.
REFRESH rt_extab.
APPEND 'BUT02' TO rt_extab.
SET PF-STATUS 'STANDARD' IMMEDIATELY EXCLUDING rt_extab.
ENDIF.
***两个按钮是交互生效,主要设置如下
1,双击SET PF-STATUS 'STANDARD' 中 STANDARD 输入 BUT01 BUT02 BACK 等参数
2,goto->attributes->pushbutton assignment...->Display all 这步是关键
3, 激活 OK