Open nangnangchuai opened 5 years ago
添加自己的按钮在应用工具栏里面
双击ZHEAD
module STATUS_2001 output.
SET PF-STATUS 'STATUS'.
* SET TITLEBAR 'xxx'.
endmodule. " STATUS_2001 OUTPUT
&--------------------------------------------------------------------- & Report ZPROGRAM_F0061 & &--------------------------------------------------------------------- & & &---------------------------------------------------------------------
REPORT ZPROGRAM_F0061. DATA OK_CODE LIKE SY-UCOMM. CALL SCREEN 2001. &--------------------------------------------------------------------- & Module USER_COMMAND_2001 INPUT &---------------------------------------------------------------------*
ENDCASE.
CASE OK_CODE. WHEN 'MENU1'. MESSAGE 'YOUR TRIGER 子菜单1'TYPE 'I'. WHEN 'MENU2'. MESSAGE 'YOUR TRIGER 子菜单2'TYPE 'I'. WHEN 'MENU3'. MESSAGE 'YOUR TRIGER 子菜单3'TYPE 'I'. WHEN 'MENU3'. MESSAGE 'YOUR TRIGER 子菜单4'TYPE 'I'. WHEN 'ZHEAD'. MESSAGE 'HEAD' TYPE 'E'. WHEN OTHERS. ENDCASE.
endmodule. " USER_COMMAND_2001 INPUT &--------------------------------------------------------------------- & Module STATUS_2001 OUTPUT &---------------------------------------------------------------------*
endmodule. " STATUS_2001 OUTPUT &--------------------------------------------------------------------- & Module CANCEL INPUT &---------------------------------------------------------------------*
想建立每个菜单栏下的二级菜单,双击比如菜单1