关于abap:ABAP数据结构激活时的错误关于数据类型QUAN和其reference-field

7次阅读

共计 1275 个字符,预计需要花费 4 分钟才能阅读完成。

看看这种谬误音讯的一个例子:

combination reference table/field XXX does not exist

引起谬误的字段类型为 LOSMENGE,字段名为 INSLO:

该字段的根本数据类型 (Data Type) 为 QUAN,长度为 13.

依据 ABAP 帮忙文档, QUAN 类型须要和某种单位字段联合在一起,用于形容理论业务流程中的数量,比方 一本书,一件啤酒,一捆绳子等等。

A quantity field is a component of a structure, database table, or view of type QUAN defined in ABAP Dictionary, used to include a quantity in a specific unit. A quantity field must be associated with a unit key of a structure, database table, or view which determines the unit and the number of fractional digits. A unit key is a component of a structure, database table, or view of type UNIT defined in ABAP Dictionary and can contain a unit ID from the database table T006.

依照 ABAP 帮忙文档里的规定,类型为 QUAN 的字段,必须设置一个类型为 UNIT 的字段作为单位,二者独特形容“数量”这个概念,短少单位,数量单位的语义就不残缺。

A data element of data type QUAN is handled as a field of data type DEC and is stored in database tables in the BCD format. When creating a data element or a structure component of the data type QUAN in the ABAP Dictionary tool, any number of fractional digits can be defined. The default value is no fractional digits.

For every structure component of data type QUAN, a component of the same structure or of a different structure, database table, or view must be specified in the individual editing of the component as a reference field, which has the data type UNIT. This field is the unit key which determines the unit of the quantity. From a technical perspective, the data type UNIT is handled like a type CHAR with length 2.

更多 Jerry 的原创文章,尽在:” 汪子熙 ”:

正文完
 0