Syntax
REFRESH CONTROL contrl FROM SCREEN dynnr.
Effect
This statement initializes the attributes of a table control by assigning values to certain components of the corresponding structure contrl. For contrl, a structure must be specified that was created using the statement CONTROLS for a table control. The values are taken from the definition of the table control with the same name. Their screen is specified in dynnr. The values of the components are set. These are the components for which the start values are taken from the definition of a table control (see description of the structure CXTAB_CONTROL in CONTROLS). For dynnr, a data object of the type n of length 4 is expected. It must contain the number of a screen on which a table control name contrl is defined.
前面的关键字就不用说了,是为了刷新和初始化control。
我们来了解一下后面的关键字 FROM SCREEN dynnr.
如果我们在100和200中同时定义了同一个tablecontrol CTRL.
那么如果在100中使用上述语句且后面指定为200screen,其效果就是
用200中的这个CTRL属性来初始化100的CTRL.
如100固定列3列,200固定列4列,执行上面说的情况后,100的CTRL固定列也是
4列。
结束。。。。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7714329/viewspace-767613/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7714329/viewspace-767613/
本文详细介绍了ABAP中的REFRESHCONTROL语法及其作用。通过指定FROM SCREEN dynnr,可以从另一个屏幕上的相同名称的表控件获取属性值,并应用于当前控件,实现表控件属性的刷新与初始化。
720

被折叠的 条评论
为什么被折叠?



