ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>
来源:互联网 发布:我要做淘宝优惠券群主 编辑:程序博客网 时间:2024/05/29 04:37
在修改报表遇到的一个用法
直接上例子:
DATA: BEGIN OF LINE, COL1 TYPE I VALUE '11', COL2 TYPE I VALUE '22', COL3 TYPE I VALUE '33', END OF LINE.DATA COMP(5) VALUE 'COL3'.FIELD-SYMBOLS: <F1>, <F2>, <F3>.ASSIGN LINE TO <F1>.ASSIGN COMP TO <F2>.DO 3 TIMES. ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>. WRITE <F3>.ENDDO.ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.WRITE / <F3>.
输出结果:
该示例中, <F1> 指向字段串 LINE, <F2> 指向字段 COMP。 循环中,LINE 的组件由其 号码指定, 并且一个接 一个地被分 配到 <F3>。 循环之后, LINE 的组件 COL3 由其名称指 定,并被分 配到 <F3>。
0 0
- ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.
- ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>
- ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.
- Adjust structure size to power of two
- Cost Component Structure
- How to creating a Component of Joomla
- What's the methodLists attribute of the structure objc_class for?
- The Lost Art of C Structure Packing - Eric S. Raymond
- 131.View the Exhibit and examine the structure of the PRODUCT, COMPONENT, and PDT_COMP tables.
- attempt to reference field of non-structure array
- [Matlab]Attempt to reference field of non-structure array
- E2288 Pointer to structure required on left side of -> or ->*
- Assign Chart of Depreciation to Company code in SAP
- Cannot assign value of type 'InterfaceController' to type 'HKWorkoutSessinDelegate'
- Cannot assign value of type 'AnyObject' to type 'HereIsTheTypeName?'
- Tensorflow error : Assign requires shapes of both tensors to match
- Vue component-based application structure
- Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].S
- c语言实现数据结构中的链表源代码
- AndroidAsync
- 安卓5.0源码编译及烧录到真机
- strange IOC框架 塔防游戏实例应用 (三)
- 题目:利用OpenCV3.1.0从磁盘加载并显示一副图像
- ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>
- 使用hibernate tools插件生成POJO
- 深入理解SELinux SEAndroid(最后部分)
- [总结]怎么让adb识别修改了VID和PID的手机(移动设备)
- ThinkPHP3.2.3使用分页
- mysql集群数据一致性校验
- linux 常用命令大全
- 嵌入式开发-迅为i.MX6Q开发板移植移动4G模块分享
- 欢迎使用CSDN-markdown编辑器