选择屏幕工具栏按钮

TABLES:sscrfields.

*工具栏按钮,最多5个
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY 2.

PARAMETERS p_bukrs TYPE bukrs.

*初始化
INITIALIZATION.

  sscrfields-functxt_01 = '@01@ 测试按钮1'.
  sscrfields-functxt_02 = '@02@ 测试按钮2'.

AT SELECTION-SCREEN.

  CASE sy-ucomm.

    WHEN 'FC01'.

      "按钮1事件
    WHEN 'FC02'.

      "按钮2事件
    WHEN OTHERS.
  ENDCASE.

执行结果:

 

posted @ 2017-11-22 13:37  做梦都笑醒  阅读(343)  评论(0编辑  收藏  举报