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.
执行结果: