CREATE DATA
来源:互联网 发布:mac无法登陆app store 编辑:程序博客网 时间:2024/05/17 02:26
CREATE DATA dref.
This short form, without further additions, is only allowed for completely typed data references, that is references whose complete reference type is known statically. The system creates a data object with the statically specified reference type.
Example
In the following example a data object with the type SBOOK is dynamically created and dereferenced for use:
data DREF type ref to SBOOK.
create data DREF.
select *
from SBOOK
into DREF->*.
...
endselect.
CREATE DATA dref TYPE simpletype.
Effect
For a simple type specification you can use the REF TO or LINE OF additions to specify a reference type or line type of a table type resepectively. If you are declaring an elementary type, you can also use the LENGTH and DECIMALS additions. The type specification must be compatible with the reference variable type.
Example
In the following example, we create an anonymous data object to which the reference dref points. The type of the data object is the type of the work area in the database table SBOOK. We then assign the data object to the field symbol <fs> using the dereferencing operator ->*. Any other dereferencing is not possible here, because the reference variable is not completely typed. You can now work with the fieldsymbol as normal.
DATA: dref TYPE REF TO DATA.
FIELD-SYMBOLS: <fs> TYPE ANY.
" Create object of type SBOOK and attach the field symbol
CREATE DATA dref TYPE sbook.
ASSIGN dref->* TO <fs>.
- CREATE DATA
- create Bean Data Sources
- Create random data in qualificatory area
- How To Create A Data Entry Screen
- Fixed-Point Designer:Create Fixed-Point Data
- BW--Create Data Warehousing: Step by Step(摘自SAP Library)
- BW--Create Data Warehousing: Step by Step(摘自SAP Library)
- [zz]How to Create Sample Data in Blend 3
- The CREATE DATA statement with built-in generic types
- How to: Create and Use a Data Connection Library
- Steps to create a new Google Data Template
- ext.data.record.create中 name与mapping的区别
- Using Oracle Data Pump to create an external table
- ext.data.record.create中 name与mapping的区别
- Oracle Data Modeler: unable to create Java instance
- Data->Iopb->Parameters.Create.Options & FILE_DIRECTORY_FILE 判断是否为路径
- TimesTen-925: Cannot create data store semaphores (Invalid argument)
- Unable to create unsliced image from csi bitmap data
- http错误404-文件或目录未找到
- 中关村报价系统上线 可助消费者识别虚报价格
- VC调试方法
- 文盲的 JavaScript 实战篇之一:表单验证
- 定时器
- CREATE DATA
- 摩根士丹利:3亿儿童拉动中国动漫市场
- GridView应用总结
- ASP 显示数据库中表名、字段名、字段内容(只知道数据库文件路径和文件名)
- DataList应用总结
- 实现向数据库中任何表中添加、删除、修改内容
- 中断、DMA、通道
- JAVA学习提高之----Java的多种方式读写Properties文件
- fso实现整个文件夹内容的复制到另一个文件夹中