1.测试

2.代码

 *&---------------------------------------------------------------------*
*& Report ZRICO_TEST24
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
report zrico_test24. tables: sscrfields.
data: g_code type sscrfields-ucomm. "FUNCTION CODE parameters: p_cb0() type c no-display, "Close Block 0
p_cb1() type c no-display. "Close Block 1 selection-screen function key ."expand all blocks
selection-screen function key . "collapse all blocks ***************** Block 00 *** Description data file
selection-screen: pushbutton /() pushb_o0 "Open Block 00
user-command ucomm_o0 modif id mo0, "#EC NEEDED
pushbutton /() pushb_c0 "Close Block 00
user-command ucomm_c0 modif id mc0. "#EC NEEDED
selection-screen begin of block b0 with frame title text-.
parameters: p_down00 type downloadx as checkbox modif id mc0.
selection-screen end of block b0. ***************** Block 01 *** Report 01
selection-screen: pushbutton /() pushb_o1 "Open Block 01
user-command ucomm_o1 modif id mo1, "#EC NEEDED
pushbutton /() pushb_c1 "Close Block 01
user-command ucomm_c1 modif id mc1. "#EC NEEDED
selection-screen begin of block b1 with frame title text-.
parameters: p_rep01 as checkbox modif id mc1."DEFAULT 'X'.
parameters: p_var01 like varid-variant modif id mc1.
selection-screen end of block b1. initialization. * Close Selection-Screen
p_cb0 = 'X'. p_cb1 = 'X'.
* Set Text & Icon for application bar
concatenate icon_expand: 'Expand all blocks' into sscrfields-functxt_01.
concatenate icon_collapse: 'Collapse all blocks' into sscrfields-functxt_02. * Set Text & Icon for Pushbutton
concatenate icon_collapse: 'Block 00' into pushb_c0,
'Block 01' into pushb_c1 . concatenate icon_expand: 'Block 00' into pushb_o0,
'Block 01' into pushb_o1. at selection-screen.
g_code = sscrfields-ucomm.
case g_code.
*Expand all blocks
when 'FC01'.
perform expand_all_blocks.
*Collapse all blocks
when 'FC02'. "Collapse all blocks
perform collapse_all_blocks.
*Open/close individual block functions
when 'UCOMM_O0'. "Open Block 0
clear p_cb0.
when 'UCOMM_C0'. "Close Block 0
p_cb0 = 'X'.
when 'UCOMM_O1'. "Open Block 1
clear p_cb1.
when 'UCOMM_C1'. "Close Block 1
p_cb1 = 'X'.
endcase. at selection-screen output.
*modify screen according predefined screen group
loop at screen.
case screen-group1.
when 'MC0'.
perform close_block using: p_cb0 'MC0' space.
when 'MO0'.
perform close_block using: p_cb0 'MO0' 'X' .
when 'MC1'.
perform close_block using: p_cb1 'MC1' space.
when 'MO1'.
perform close_block using: p_cb1 'MO1' 'X' .
when others.
continue.
endcase.
endloop. *&---------------------------------------------------------------------*
*& Form close_block
*&---------------------------------------------------------------------*
form close_block using value(i_close_block) like p_cb1
value(i_modify_id) like screen-group1
value(i_convert) type char1.
if not i_convert is initial.
if i_close_block is initial.
i_close_block = 'X'.
else.
clear i_close_block.
endif.
endif. if ( screen-group1 = i_modify_id )
and ( not i_close_block is initial ).
screen-active = ''.
modify screen.
endif. endform. "close_block *&---------------------------------------------------------------------*
*& Form collapse_all_blocks
*&---------------------------------------------------------------------*
form collapse_all_blocks.
p_cb0 = 'X'.p_cb1 = 'X'.
endform. "collapse_all_blocks *&---------------------------------------------------------------------*
*& Form expand_all_blocks
*&---------------------------------------------------------------------*
form expand_all_blocks.
clear: p_cb0,p_cb1 .
endform.

ABAP-折叠窗口的更多相关文章

  1. Winform中使用折叠窗口

    使用此处的控件 http://www.codeproject.com/Articles/18401/XPanderControls 注意事项 使用之前需要先添加winform自带的toolStripC ...

  2. 前端的UI设计与交互之设计原则篇

    1.亲密性 a)纵向间距示例这三种规格分别为:8px(小号间距).16px(中号间距).24px(大号间距). b)在这三种规格不适用的情况下,可以通过加减『基础间距』的倍数,或者增加元素来拉开信息层 ...

  3. 扩展SplitContainer控件

    效果图: 自定义控件实现代码: using System; using System.ComponentModel; using System.Drawing; using System.Window ...

  4. vim的vimrc配置

    windows "# modified by Neoh set helplang=cn "使用中文帮助文档 set encoding=utf-8 "查看utf-8格式的帮 ...

  5. Altium Designer 开始一个项目

    通常一个嵌入式开发都需要一个开发板,这就涉及到原理图设计和PCB设计等流程.目前比较主流的设计软件当属Altium Designer了,于是便向写一个关于这方面的专题,也好总结一下,省得以后忘记. A ...

  6. BootStrap入门教程 (四) :JQuery类库插件(模态窗口,滚动监控,标签效果,提示效果,“泡芙”效果,警告区域,折叠效果,旋转木马,输入提示)

    上讲回顾:Bootstrap组件丰富同时具有良好可扩展性,能够很好地应用在生产环境.这些组件包括按钮(Button),导航(Navigation),缩略图( thumbnails),提醒(Alert) ...

  7. 使用AnimateWindow来实现窗口淡入淡出(主要有四种动画,滚动,滑动,折叠或展开,和淡入淡出)

    如果是在VC6下进行编译,应引入下面的预编译宏,注意放在windows.h的前面#undef  WINVER   #define  WINVER   0x500为什么要引入上面的宏呢?看看winuse ...

  8. 仿word导航窗口的展开与折叠

    // 标识是否是展开状态 bool isExtend = true; // 定义可以扩展的宽度 const int PanelWidth = 444; private void expandableS ...

  9. SSRS 实用技巧 ---- 为表格添加展开/折叠操作(明细报表)

    相信很多人都会遇到这样的需求:当表格按照某几个列分组时,需要为组添加展开和折叠的操作. 最初展现表格的时候只展现最外层分组,然后点击展开后可以查看分组内的明细情况. 先来一张效果图,然后再看具体如何实 ...

  10. ABAP使用OLE2对象创建EXCEL文件

    厌倦了总是下载一模一样的EXCEL文档?没有颜色,边框,有效性验证.... 让我们看看怎样用OLE2对象来创造可爱的EXCEL工作表吧!(效果如下) 首先你需要知道微软EXCEL中的不同部分的名称,每 ...

随机推荐

  1. 学习笔记之Bokeh Data Visualization | DataCamp

    Bokeh Data Visualization | DataCamp https://www.datacamp.com/courses/interactive-data-visualization- ...

  2. oracle表空间不足时如何处理

    1 查看表在那个表空间select tablespace_name,table_name from all_tables where table_name='T_BM_GOODS_BASE'; 2   ...

  3. 廖雪峰Java1-3流程控制-5循环

    while循环 while循环首先判断条件: 条件满足时循环:条件不满足时退出循环 如果一开始条件就不满足,一次都不循环.如while false int sum = 0; int n = 1; wh ...

  4. Centos 6.5(64位) vim 8.0 安装

    转自:https://blog.csdn.net/sdoyuxuan/article/details/78825912 1 先得安装nurses库 yum list | grep "ncur ...

  5. UE4中使用URL图片

    转自:http://www.52vr.com/article-911-1.html

  6. C#语言基础知识

    一. string i_str = "321"; string 型,强制转换成 int 型 int i_int1 = int.parse(i_str); string 型,强制转换 ...

  7. HBase原理和架构

    HBase是什么 HBase在生态体系中的位置 HBase vs HDFS HBase表的特点 HBase是真正的分布式存储,存储级别达到TB级别,而才传统数据库就不是真正的分布式了,传统数据库在底层 ...

  8. PHP unset()函数销毁变量

    <?php // 销毁单个变量 unset ($var); // 销毁单个数组元素 unset ($arr['a']); // 销毁多个变量 unset ($var1, $var2, $var3 ...

  9. 《linux性能及调优指南》 3.4 硬盘瓶颈

    翻译:Hank (http://blog.csdn.net/fireroll)版权所有,尊重他人劳动成果,转载时请注明作者和原始出处及本声明.原文名称:<Linux Performance an ...

  10. mysql where in形式存储过程如何传递带有单引号的入参

    对于存储过程或者函数,我们通常都有这样的一个需求,传递一个参数,输出一个结果.如:我传递一个账号,返回这个账号所拥有的权限.但是如果这个需求改了,我要传递多个账号,获取这些账号权限,但是账号的个数不限 ...