IPM: Enhance item implementation class

124 阅读1分钟

Created by Jerry Wang, last modified on Mar 25, 2014

IPM application里所有的BOL entity上面都封装了一层额外的implementation class, 如下图所示:

 

clipboard1

 

 

真正的BOL entity包含在implementation class的WRAPPED_ENTITY attribute里:

 

clipboard2

 

 

implementation class本身的wrapper BOL entity的name称之为external name, 和wrapped bol entity不相同。

 

clipboard3

 

 

wrapper BOL entity的container proxy包含的是一个initial的structure:

 

clipboard4

 

 

在SPRO里能够对该wrapper逻辑做enhancement:

 

clipboard5

 

 

新建一个class,继承自CL_CRM_IPM_ORDER_ITEM_ENTITY:

 

clipboard6

 

 

redefine希望添加enhancement 逻辑的方法,例如在get_property里面写application log的代码:

 

clipboard7

 

 

然后在customizing里添加一条新的entry:

 

clipboard8

 

 

runtime时候,自定义的item implementation class会被调用:

 

clipboard9