Append&Include for enhancement

there are three types of adding fields

1. Normal structures (Which are nothing but include structure that start with '.INCLUDE')

2. APPEND STRUCTURES (FOR STANDARD TABLES) (START WITH ".APPEND")

3. customizing includes(FOR STANDARD TABLES) (".CI", THESE ARE DONE BY END USERS NOT BY US ).

STRUCTURE IS A COLLECTION OF FIELDS.

COMING TO THE DIFFERENCE BETWEEN INCLUDE STRUCTURES AND APPEND STRUCTURES.

INCLUDE STRUCTURES CAN USED BY US TO ADD FIELDS INTO ANY ZTABLES. BECAUSE, IN A ZTABLE, WE CAN ADD FIELDS WHER EVER WE WANT.


APPEND STRUCTURES ARE USED ONLY TO ENHANCE STANDARD TABLES.  只用于增强标准table?
STANDARD TABLES MAY HAVE INCLUDE STRUCTURES ALREADY CREATED , BUT IF WE WANT TO ADD SOME MORE FIELDS

TO THE STANDARD TABLES, WE NEED TO GO FOR APPEND STRUCTURES.


APPEND STRUCTURES SHOULD BE ADDED AT THE END OF A STANDARD TABLE. THIS IS A MUST. BECAUSE WE SHOULD NOT CHANGE THE ORIGINAL STANDARD TABLE IN THE MIDDLE.

SOME STANDARD TABLES FOR WHICH THERE ARE LONG DATA TYPE FIELDS cannot be enhanced because, LONG TYPE FIELDS SHOULD ALWAYS BE AT THE END AND APPEND STRUCTURES SHOULD ALSO BE AT THE END, SO THERE WILL BE A CONFLICT

上面讲的不知所云,找了几个地方说法都不一样。下面靠谱一点。有时间再测一测。

An APPEND belongs to one and only one table (1:1 relation). An INCLUDE can be included in many tables (and structures) and APPENDs.

 

I prefer the following approach:

(1) Create APPEND for my target table
(2) Create one ore many INCLUDE structures (which group different kinds of fields, 
      .e.g. address fields, accouting fields, etc.)
(3) Include the INCLUDE structures in the single APPEND structure


So, to summarize the usage:

- you want to add your own fields to a SAP table/structure: use append structure

- you want to define a structure consisting of a logically related group of fields, and you want to be able to refer to this structure in any table or structure of your own: use an include structure

总结一下,就是当需要重用性的时候,用include。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值