ABAP-折叠窗口
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-折叠窗口的更多相关文章
- Winform中使用折叠窗口
使用此处的控件 http://www.codeproject.com/Articles/18401/XPanderControls 注意事项 使用之前需要先添加winform自带的toolStripC ...
- 前端的UI设计与交互之设计原则篇
1.亲密性 a)纵向间距示例这三种规格分别为:8px(小号间距).16px(中号间距).24px(大号间距). b)在这三种规格不适用的情况下,可以通过加减『基础间距』的倍数,或者增加元素来拉开信息层 ...
- 扩展SplitContainer控件
效果图: 自定义控件实现代码: using System; using System.ComponentModel; using System.Drawing; using System.Window ...
- vim的vimrc配置
windows "# modified by Neoh set helplang=cn "使用中文帮助文档 set encoding=utf-8 "查看utf-8格式的帮 ...
- Altium Designer 开始一个项目
通常一个嵌入式开发都需要一个开发板,这就涉及到原理图设计和PCB设计等流程.目前比较主流的设计软件当属Altium Designer了,于是便向写一个关于这方面的专题,也好总结一下,省得以后忘记. A ...
- BootStrap入门教程 (四) :JQuery类库插件(模态窗口,滚动监控,标签效果,提示效果,“泡芙”效果,警告区域,折叠效果,旋转木马,输入提示)
上讲回顾:Bootstrap组件丰富同时具有良好可扩展性,能够很好地应用在生产环境.这些组件包括按钮(Button),导航(Navigation),缩略图( thumbnails),提醒(Alert) ...
- 使用AnimateWindow来实现窗口淡入淡出(主要有四种动画,滚动,滑动,折叠或展开,和淡入淡出)
如果是在VC6下进行编译,应引入下面的预编译宏,注意放在windows.h的前面#undef WINVER #define WINVER 0x500为什么要引入上面的宏呢?看看winuse ...
- 仿word导航窗口的展开与折叠
// 标识是否是展开状态 bool isExtend = true; // 定义可以扩展的宽度 const int PanelWidth = 444; private void expandableS ...
- SSRS 实用技巧 ---- 为表格添加展开/折叠操作(明细报表)
相信很多人都会遇到这样的需求:当表格按照某几个列分组时,需要为组添加展开和折叠的操作. 最初展现表格的时候只展现最外层分组,然后点击展开后可以查看分组内的明细情况. 先来一张效果图,然后再看具体如何实 ...
- ABAP使用OLE2对象创建EXCEL文件
厌倦了总是下载一模一样的EXCEL文档?没有颜色,边框,有效性验证.... 让我们看看怎样用OLE2对象来创造可爱的EXCEL工作表吧!(效果如下) 首先你需要知道微软EXCEL中的不同部分的名称,每 ...
随机推荐
- Flink 集群安装配置
以下操作均在主节点进行 1.环境变量 添加FLINK_HOME以及path的内容: export FLINK_HOME=/bigdata/flink- export PATH=$PATH:$JAVA_ ...
- JVM异常之:方法区溢出OutOfMemoryError: PermGen space
1.方法区溢出(Perm持久代溢出) 在jdk1.6及之前的版本中,常量池放在Perm区也即是方法区中,所以在jdk1.6版本中,常量池溢出可以说是方法区溢出. 示例一: 方法区溢出的示例见<J ...
- SEO 图片用IMG插入好还是用Background定义好?
主要的区别就是,background搜索引擎室不知道图片内容说什么的.而img,是可以通过alt标签向搜索引擎描述你图片的内容.所以如果这张图片对你网站内容有帮助,那最好用img,如果没有什么用处的话 ...
- SkipList理解
记下自己对跳表SkipList的理解. SkipList采用空间换时间的思想,通过增加数据间的链接,达到加快查找速度的目的. 数据库LevelDB和RocksDB中用到了SkipList,Redis中 ...
- PHP中常用的数组函数总结
整理了一份PHP开发中数组操作大全,包含有数组操作的基本函数,数组的分段和填充,数组与栈,数组与列队,回调函数,排序,计算,其他的数组函数等. 一,数组操作的基本函数 数组的键名和值 array_va ...
- [UE4]碰撞机制
应用于两种情况: 一.射线追踪,LineTrace 1.射线来自某个Trace Channel 2.Trace Channel 默认有两个:Visibility(不是可见的意思.只是Channel名称 ...
- zabbix监控ESXI主机(可用)
ESXI6.0默认SSH关闭的,打开SSH的方法如下图: SSH打开后,主机会有警报,关闭警报的方法如下图 esxcli system snmp set --communities publi ...
- (转)开源OpenWRT知识
原博地址:http://www.thinkingquest.net/article/466 我们都需要使用google提供的搜索,gmail等优质服务.但是由于方墙的存在,使得大家各自搞各自的FQ办法 ...
- Maven 自动下载源码和文档
Maven下在pom中下载之后,如何才能使其自动下载源码和文档? 如果已经下载,可以先从Maven库中删除已经下载的代码,然后再update Maven项目即可
- socketsever
socketsever 一个集成了TCP.UDP多线程多进程高并发的socket框架,可以用来快速搭建socket应用,并且拥有较好的并发性能. import socketserver class M ...