ABAP 根据权限显示或隐藏菜单的按钮

 

FORM set_pf_status USING rt_extab TYPE slis_t_extab.

  DATA: rs_extab LIKE LINE OF rt_extab.

  rs_extab = '&ZPRINTE'.   "按钮的事件名称
  APPEND rs_extab TO rt_extab. 

  IF p_zxsdd = abap_true.  "p_zxsdd是报表选择界面中的单选框,选中则显示该按钮
    SET PF-STATUS 'STATUS'.
  ELSE.
    SET PF-STATUS 'STATUS' EXCLUDING rt_extab.  "不选中则排除该按钮
  ENDIF.

ENDFORM. 

 

你可能感兴趣的:(ABAP,abap,动态,报表,按钮)