TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,

            p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY ,   "激活按钮

                  FUNCTION KEY .

INITIALIZATION.

  sscrfields-functxt_01 = 'LH'.    "定义按钮文本

  sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.

  CASE sscrfields-ucomm.          "处理按钮命令

      WHEN'FC01'.

      p_carrid = 'LH'.

      p_cityfr = 'Frankfurt'.

    WHEN 'FC02'.

      p_carrid = 'UA'.

      p_cityfr = 'Chicago'.

  ENDCASE.

START-OF-SELECTION.
---------------------
作者:雾气
来源:CSDN
原文:https://blog.csdn.net/qq_16116183/article/details/
版权声明:本文为博主原创文章,转载请附上博文链接!

结果显示:

SAP 选择屏幕的上方 (sscrfields) 按钮设置-LMLPHP

05-11 20:36