Typed vs untyped Parameters
来源:互联网 发布:网络推手阿健收费标准 编辑:程序博客网 时间:2024/04/29 05:56
Untyped parameters
Runtime: 5 microseconds
PERFORM UP1 USING 10 M6-DIMID M6-ZAEHL M6-ISOCODE M6-ANDEC M6-PRIMARY.
FORM UP1 USING
REPEAT
DIMID
ZAEHL
ISOCODE
ANDEC
PRIMARY.
* Identical source code left and right:
DO REPEAT TIMES.
T006_WA-DIMID = DIMID.
T006_WA-ZAEHL = ZAEHL.
T006_WA-ISOCODE = ISOCODE.
T006_WA-ANDEC = ANDEC.
T006_WA-PRIMARY = PRIMARY.
ENDDO.
ENDFORM.
Typed parameters
Runtime: 2 microseconds
PERFORM UP2 USING 10 M6-DIMID M6-ZAEHL M6-ISOCODE M6-ANDEC M6-PRIMARY.
FORM UP2 USING
REPEAT TYPE I
DIMID LIKE T006-DIMID
ZAEHL LIKE T006-ZAEHL
ISOCODE LIKE T006-ISOCODE
ANDEC LIKE T006-ANDEC
PRIMARY LIKE T006-PRIMARY.
* Identical source code left and right:
DO REPEAT TIMES.
T006_WA-DIMID = DIMID.
T006_WA-ZAEHL = ZAEHL.
T006_WA-ISOCODE = ISOCODE.
T006_WA-ANDEC = ANDEC.
T006_WA-PRIMARY = PRIMARY.
ENDDO.
ENDFORM.
Documentation
If you specify the type for formal parameters in your source code,
the ABAP/4 compiler can optimize your code more thoroughly.
In addition, the risk of using the wrong sequence of parameters in a
Perform statement is much less.
- Typed vs untyped Parameters
- 深度对比 非强类型(UnTyped)Dataset和强类型(Strong-Typed)Dataset
- URL matrix parameters vs. request parameters
- Haxe中的untyped关键字
- * typed language
- Parameters
- Parameters
- Parameters
- parameters
- vs启动错误:Exception Processing Message 0xc0000005 Parameters...
- Strongly Typed Enums
- typed的使用
- 初尝 core.typed
- Typed Array常量资源
- typed.js 打字机效果
- parameters vs. arguments and call by value vs. call by reference
- 非强类型(UnTyped)Dataset 与强类型(UnTyped)Dataset 比较
- Strongly/Weekly typed, Explicitly/Implicitly typed and Dynamic/Static type
- javascript各种类型数据在表达式中转换成布尔型值的规则总结
- Java连接各种数据库的配置方法总结
- 使用as和ld编译.s文件
- fixed and unfixed length strings
- C++调用WebService
- Typed vs untyped Parameters
- SQL语句优化原则
- oracle基本语句
- 字符集编码
- 近期总结(上)
- Modifying a set of lines directly
- 我的面试经历
- 测试订阅
- 一个CDialog初始化时的异常问题 Error: no data exchange control with ID 0x%04X./n ", nIDC