博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
OO的ALV隐藏工具栏的form
阅读量:6302 次
发布时间:2019-06-22

本文共 3404 字,大约阅读时间需要 11 分钟。

OO的ALV隐藏工具栏:

***展示数据  CALL METHOD gr_alvgrid->set_table_for_first_display    EXPORTING      is_variant                    = gs_variant      i_save                        = 'A'      is_layout                     = gs_layout      it_toolbar_excluding          = gt_exclude   “隐藏的工具栏    CHANGING      it_outtab                     = gt_data      it_fieldcatalog               = gt_fieldcat    EXCEPTIONS      invalid_parameter_combination = 1      program_error                 = 2      too_many_lines                = 3      OTHERS                        = 4.

 

以下是需要隐藏的工具栏form程序

FORM exclude_tb_functions  USING    pt_exclude TYPE ui_functions.  DATA ls_exclude TYPE ui_func.  ls_exclude = cl_gui_alv_grid=>mc_fc_current_variant. "当前变式  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_save_variant.  "保存变式  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_average.       "平均值  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_load_variant.   "加载变式  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_minimum.        "最大数  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_maximum.         "最小数  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_maintain_variant. "变式  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_views.            "视图  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_graph.            "显示图形  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_sum.              "汇总  APPEND ls_exclude TO pt_exclude.  ls_exclude = cl_gui_alv_grid=>mc_fc_subtot.           "子项目汇总  APPEND ls_exclude TO pt_exclude.*  ls_exclude = cl_gui_alv_grid=>mc_fc_filter.           “过滤*  APPEND ls_exclude TO pt_exclude.*  ls_exclude = cl_gui_alv_grid=>mc_fc_sort_dsc.          "降序*  APPEND ls_exclude TO pt_exclude.*  ls_exclude = cl_gui_alv_grid=>mc_fc_sort_asc.           "升序*  APPEND ls_exclude TO pt_exclude.*  ls_exclude = cl_gui_alv_grid=>mc_fc_check.              "检查*  APPEND ls_exclude TO pt_exclude.*  ls_exclude = cl_gui_alv_grid=>mc_fc_detail.             "详细*  APPEND ls_exclude TO pt_exclude.*  ls_exclude = cl_gui_alv_grid=>mc_fc_refresh.            "刷新*  APPEND ls_exclude TO pt_exclude.  IF p_inse <> 'X' . "非插入数据的alv工具栏需要隐藏的工具    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste_new_row. "粘贴新行    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.          "复制    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.    "添加行    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.      "复制行    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.    "插入行    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.    "删除行    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_cut.           "剪切    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste.         "粘贴    APPEND ls_exclude TO pt_exclude.    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_undo.          "撤销    APPEND ls_exclude TO pt_exclude.  ENDIF.ENDFORM.                    " EXCLUDE_TB_FUNCTIONS

 

转载于:https://www.cnblogs.com/caizjian/p/3760639.html

你可能感兴趣的文章
初入java体会
查看>>
php学习
查看>>
iScroll-5 API 中文版
查看>>
java运算符之布尔运算符
查看>>
Geoserver端口冲突解决方案
查看>>
MySQL数据库改名字
查看>>
如何重启MySQL,正确启动MySQL
查看>>
public,protected,privat区别
查看>>
Webpack使用教程六(Plugins)
查看>>
从外国html5网站上扒来一个鼠标经过的css3 效果,感觉很不错
查看>>
世界最大漏洞数据库发布最新研究报告
查看>>
c#实现图片二值化例子(黑白效果)
查看>>
CurrentCulture和CurrentUICulture的区别
查看>>
Spring学习(22)--- AOP之Advice应用(下)
查看>>
A302应用开发中基础功能的经验总结
查看>>
【Python开发】Python中数据分析环境的搭建
查看>>
cocos2d-x simpleGame 0
查看>>
xpath语法大全
查看>>
oracle exists / in
查看>>
tortoise更新后eclipse项目挂掉,报错找不到类
查看>>