ABAP 数据结构激活时的错误消息 - combination reference table field XXX does not exist
发布日期:2021-06-30 14:46:42 浏览次数:2 分类:技术文章

本文共 1505 字,大约阅读时间需要 5 分钟。

看看这种错误消息的一个例子:

combination reference table/field XXX does not exist

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

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

根据, 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的原创文章,尽在:“汪子熙”:

转载地址:https://jerry.blog.csdn.net/article/details/115454526 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:一个好用的Visual Studio Code扩展 - Live Server,适用于前端小工具开发
下一篇:Kitten编程猫里如何先后播放不同的背景音乐

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2024年04月19日 00时24分32秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章