ABAP选择屏幕添加按钮

TABLES: sscrfields.

SELECTION-SCREEN FUNCTION KEY 1.  " 激活按钮
SELECTION-SCREEN FUNCTION KEY 2.  " 激活按钮


PARAMETERS: p_1 TYPE i.  " 选择屏幕


INITIALIZATION.
  sscrfields-functxt_01 = '加1'.
  sscrfields-functxt_02 = '减1'.


AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
    WHEN 'FC01'.
      p_1 = p_1 + 1.
    WHEN 'FC02'.
      p_1 = p_1 - 1.
  ENDCASE.

 

 

 

posted @ 2021-09-07 16:53  北斗星君  阅读(1266)  评论(0编辑  收藏  举报