有两种方式: Include 和 Append
在表AUFK中INCLUDE的结构“CI_AUFK”加入自定义字段
保存,并激活;
INCLUDE 结构 CI_AUFK ,建好增强字段并激活
遇到问题:部分激活
因为字段 ZTRIAL 已经存在了,重复导致不能激活
然后发现这个标准INCLUDE:这个标准 .INCLUDE INCL_EEW_AUFK_PS 把 CI_AUFK include 进去了,不用再 单独 INCLUDE 这个结构
激活之后,AUFK 查看:
可以通过append structure为table或structure增加自己的字段,。Append structure可以像其他的普通structure一样使用。
注意:
1:Pool和cluster table不能使用append structure
2:如果table有一个长字段比如LCHAR或LRAW,就不能使用append structure。这是因为长字段必须位于表的末尾。
3:append structure只能用于一张表,一张表可以有多个append structure
4:Append structure中的field name必须位于customer namespace,他们必须以YY或ZZ开头
Customizing Include:如果事先知道表需要增加客户自己的字段,sap开发人员可以通过Customizing include语句将这些字段包括进来。
Customizing include可以用于多个表或structure。不存在的customizing include不会导致错误
原文:https://www.cnblogs.com/BruceKing/p/12132576.html