- 浏览: 1173891 次
- 性别:
文章分类
最新评论
-
shmily39871118:
为什么图片都没办法显示?
Suite on HANA[SoH]之ABAP直接调用HANA存储过程 -
zqf816:
大神,密码多少呢?可以告诉一下。
Retail - Assortment List -
weiru:
我也是做主要做Retail行业的,方便提供密码么,大家可共同交 ...
Pricing and Promotion(PartII) -
wxqcsj:
图片看不到呀
Suite on HANA[SoH]之ABAP直接调用HANA模型 -
blueoxygen:
purehunter 写道html5足以开发复杂应用了 看来h ...
SAP公开课笔记:基于HANA的软件开发 - 第一周总结
我们赋值的时候可以 destination = source 比如 gc_d = gc_s 有时候可以看到等号前有个问好
gc_d ?= gc_s 这是因为gc_s不是一个静态类型,而是一个引用类型,而且gc_d的类型要比gc_s更加泛化一些。
更加详细内容,参见ABAP文档
Syntax
MOVE source {TO|?TO} destination.
destination {=|?=} source.
Effect
Both these statements assign the content of the operand source to the data object destination. The variants with the language element TO or the assignment operator = are valid for all assignments between operands that are not reference variables, and for assignments between reference variables for which the static type of source is more specific than or the same as the static type of destination(narrowing cast).
Variants with the language element ?TO or the assignment operator ?= (casting operator ) must be used if the source and destination are reference variables and the static type of source is more general than the static type of destination (widening cast). For assignments between operands that are not reference variables, use of the question mark ? is not permitted.
The data object destination can be any data object that can be listed at a write position, and the data object source can be a data object, a predefined function or a functional method (as of release 6.10). The data type of the data object destination must either be compatible with the data type of source, or it must be possible to convert the content of source into the data type of destination according to one of the conversion rules.
Notes
- If source and/or destination are field symbols, then, as in all ABAP commands, the system works with the content of the data objects to which the field symbols point. The actual pointer content of a field symbol can only be changed using the statement ASSIGN or the addition ASSIGNING when processing internal tables (value semantics). If source and destination are reference variables, the reference contained in source is assigned to destination (reference semantics).
- Strings and internal tables are addressed internally using references. When assignments are made between strings and between internal tables (as of release 6.10), only the reference is transferred, for performance reasons. After the assignment, the actual string or the actual table body of the source as well as the target object are addressed (sharing). When the object is accessed to change it, the sharing is canceled and a copy of the content is made. The sharing is displayed in the memory consumption display of the ABAP debugger and in the Memory Inspector tool (as of release 6.20).
- Obsolete Form: MOVE PERCENTAGE
Exceptions
Catchable Exceptions
- Cause: Operand cannot be interpreted as number
Runtime Error: CONVT_NO_NUMBER (catchable)
- Cause: Overflow with arithmetic operation (type P, with specified length)
Runtime Error: BCD_FIELD_OVERFLOW (catchable) - Cause: Operand too large or (intermediate) result too large
Runtime Error: CONVT_OVERFLOW (catchable)
- Cause: Source or target variable are not reference variables
Runtime Error: MOVE_CAST_REF_ONLY
Non-Catchable Exceptions
- Cause: Source field (type P) does not contain correct BCD format.
Runtime Error: BCD_BADDATA - Cause: Assignment for deep structures not permitted if these overlap.
Runtime Error: MOVE_COMPLEX_OVERLAP - Cause: Type conflict with the assignment between object references.
Runtime Error: MOVE_INTERFACE_NOT_SUPPORTED,
Runtime Error: MOVE_IREF_NOT_CONVERTIBLE,
Runtime Error: MOVE_IREF_TO_OREF,
Runtime Error: MOVE_OREF_NOT_CONVERTIBLE - Cause: Type conflict with the assignment between data references.
Runtime Error: MOVE_DREF_NOT_COMPATIBLE - Cause: Assignment between the types involved not supported.
Runtime Error: MOVE_NOT_SUPPORTED - Cause: Constants and literals must not be overwritten.
Runtime Error: MOVE_TO_LIT_NOTALLOWED - Cause: onstants and literals must not be overwritten.
Runtime Error: MOVE_TO_LIT_NOTALLOWED_NODATA - Cause: During a loop in an internal table, an attempt was made to overwrite a reference variable that is linked with the internal table by REFERENCE INTO.
Runtime Error: MOVE_TO_LOOP_REF
发表评论
-
Converged System 一体机趋势不可挡 - IBM PureSystem与SAP
2012-11-29 14:12 2042一体机英文称为Converged System,我想最出 ... -
EXCEL书籍资源
2012-11-13 15:07 1289也许只有国内才会这么容易获得盗版图书。真希望早日能够很容易地付 ... -
个人知识管理
2012-11-07 09:29 1270我学习有一个习惯(也许是贪婪的天性使然),我喜欢搜集资料.因为 ... -
BusinessObjects Dashboard 4 FP3 Webdynpro flash islands连接
2012-10-22 15:38 1137Dashboard 4.0 FP3的新功能之一就是多了WebD ... -
SAP BW的未来 - 整理后
2011-08-02 10:33 2221尽管SAP BW在整个SAP BI solution stac ... -
SAP BusinessObjects SI/SIA
2011-07-12 14:46 3473BO Admin document 写道 Server ... -
知己知彼 百战不殆
2011-07-05 17:37 1096不能盲目滴乐观啊。 随便一搜,就会开眼界。 但是ORACLE ... -
SAP Sybase的小常识
2011-07-05 17:27 1497既然Sybase已经是SAP旗下的独立运营公司,有必要了解下S ... -
SAP BusinessObjects EPM产品的前世今生
2011-06-24 14:49 4048SAP虽然把很多产品都冠以BO的商标,但是其实这并非说所有的产 ... -
对BW顾问来说很重要的信息
2011-06-22 16:55 1595... -
SAP网站改版
2011-04-13 23:17 1429SAP新版网站在11号(好像是)上线。 新网站确实比以前的更 ... -
Java Shell Console Administation
2011-03-27 15:24 923命令参考手册 https://cw.sdn.sap.com/c ... -
ADS的负载均衡
2011-03-26 22:11 1936SAP为JAVA stack提供了两种 load balanc ... -
Subscribe this blog
2011-03-19 15:08 932http://www.sdn.sap.com/irj/scn/ ... -
A follow-up of HANA
2011-03-19 14:04 1049When most of consultants in Chi ... -
WebDynpro中对数量 货币的处理
2011-03-03 15:19 940http://help.sap.com/saphelp_nw7 ... -
adobe form书籍及其它乱弹
2011-02-25 22:16 2428http://www.amazon.com/Interacti ... -
LightSpeed~~
2011-02-23 16:59 1063Altough LightSpeed is not a &qu ... -
谁能告诉我
2011-01-28 17:31 937为啥有现成的IDoc不用,CRM要自己搞出来个BDoc? -
SAPScript Sample and useful reports
2011-01-05 09:03 1286http://help.sap.com/saphelp_nw7 ...
相关推荐
7.3 过程赋值语句Verilog HDL 中提供两种过程赋值语句 initial 和 always 语句,用这两种语句来实现行为的建模。这两种语句之间的执行是并行的,即语句的执行与位置顺序无关。这两种语句通常与语句块(begin ....end...
连续赋值语句只能用来对连线型变量进行驱动,它可以采取显式连续赋值语句和隐式连续赋值语句两种赋值方式。1.显式连续赋值语句 由两条语句构成:格式: <连续型变量类型><位宽><变量名>;//对连线型变量进行...
Python 为程序设计人员提供了哪两 种执行方式? 4.Python 程序的扩展名是( ) 。 A..python B..p C..py D..pyth 思考与练习二 1.这样定义变量行不行:3='hello python !'? 2.在写赋值语句时,我们可以写成...
Compiler赋值语句语法分析的两种实现—LR(1)分析法和Yacc Lex自动构造工具编译原理课程实践对于常用高级语言(如Pascal、C语言)的源程序从左到右进行扫描,把其中赋值语句用所学过的语法分析方法进行语法分析,判断...
2.组合逻辑的Verilog HDL 描述根据组合逻辑的电路行为,可以得到两种常用的RTL 级描述方式。第一种是always 模块的触发事件为电平敏感信号列表;第二种就是用assign 关键字描述的数据流赋值语句。 (1)always ...
Javascript 中将多个语句写成一个语句的两种方法小结 一、使用逗号运算符将多个语句写成一个语句 1.一次声明多个变量 var i=1,j=1,k=1 2.多个语句用逗号间隔 i=1,j=i+2,k=j+2 二、使用花括号将多个语句写...
2.C++中的注释方式有两种: (1).从“/*”开始,直到“*/”结束; (2).运用//的方式,并且注释的有效范围从//到本行的结束。 3.命名空间: 它是一种将程序库名称封装起来的方法,它提高了程序的性能和可靠性。 4....
来自always语句和initial语句(切记只有寄存器类型数据可以在这两种语句中赋值)的值能够驱动门或开关,而来自于门或连续赋值语句(只能驱动线网)的值能够反过来用于触发always语句和initial语句。 下面是混合设计...
我们接着上篇文章继续学习,上次提到了两种赋值语句,让我们接着往下学。
Eval 函数 ...第一种方式是赋值语句,将 y 的值赋予 x。第二种解释是测试 x 和 y 是否相等。如果相等,result 为 True;否则 result 为 False。Eval 方法总是采用第二种解释,而 Execute 语句总是采用第一种
(2)掌握为局部变量赋值的两种方法 (3)掌握常用系统函数、运算符和表达式的功能和应用 变量的应用 利用Transact-SQL语句声明一个长度为16的nchar型变量bookname,并赋初值为”SQL Server 数据库编程”。 运算符的...
摘 要:阻塞赋值与非阻塞赋值语句作为... Verilog HDL中,有两种过程赋值方式,即阻塞赋值(blocking)和非阻塞赋值(nonblocking)。阻塞赋值执行时,RHS(right hand statement)估值与更新LHS(left hand statem
摘 要:阻塞赋值与非阻塞赋值语句作为... Verilog HDL中,有两种过程赋值方式,即阻塞赋值(blocking)和非阻塞赋值(nonblocking)。阻塞赋值执行时,RHS(right hand statement)估值与更新LHS(left hand stat
给变量赋初值是变量说明的一部分,赋初值后的变量与其后的其它同类变量之间仍必须用逗号间隔,而赋值语句则必须用分号结尾。 3.在变量说明中,不允许连续给多个变量赋初值。 如下述说明是错误的: int a=b=c=5 必须...
循环结构,有当型循环结构(先判断后执行循环体)和直到型循环结构(先执行循环体后判断)两种形式。 两大优点: 程序易于理解、使用和维护; 提高了编程工作效率,降低了软件开发成本。 ; C语句分为5种类型,分别是...
本书从为什么学习程序设计语言入手,深入细致地讲解了命令式语言的主要结构及其设计与实现,内容涉及变量、数据类型、表达式和赋值语句、控制语句、子程序、数据抽象机制、对面向对象程序设计的支持(继承和动态方法...
本书从为什么学习程序设计语言入手,深入细致地讲解了命令式语言的主要结构及其设计与实现,内容涉及变量、数据类型、表达式和赋值语句、控制语句、子程序、数据抽象机制、对面向对象程序设计的支持(继承和动态方法...
两个对象做比较有两种方式,分别是:is 与 == ,is比较的是两个对象是否相同,通过对象的ID值可识别是否为相同对象,==比较的是两个对象的值是否相等 >>> x1 = [1,2] >>> x2 = [1,2] >>> x1 is x2 Fa