• 微信公众号:美女很有趣。 工作之余,放松一下,关注即送10G+美女照片!

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

开发技术 开发技术 2周前 (02-22) 8次浏览

When you create extension field via Application Extension Tool, it seems the code list ( or drop down list ) is not supported by this tool. This type does not appear in supported data type list.

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

In fact the requirement to create an extension field with type Code List is still feasible. The entries in code list in this approach are fed by check table so we have to create a check table first.

I have the following check table:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

It has a text table accordingly:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

And fill some value into this check table:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

Please notice that there are some prerequisites which a given check table must fulfill if it is expected to work as the datasource of a Code List extension field. You can find the prerequisite below:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

Once the check table is ready, you can check extension field and assign this table to it. The attribute “Render/Validate As” must be set as “Show checktable as DDLB”:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

In the runtime the extension field “JVM Type” works as below:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

When the extension field is saved, the code description is displayed in the WebUI,

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

while in the backend table CRM_EXT_MAT, the code value is saved.

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

We can use tcode AXTSHOW to inspect the metadata for this extension field. Specify extension field name and execute:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

Our assigned check table could be found here:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

This assignment relationship is maintained in table AXT_EXT_PART_DTL:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理

 

要获取更多Jerry的原创文章,请关注公众号”汪子熙”:

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理


喜欢 (0)