欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理 SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

程序员文章站 2022-06-15 19:26:50
...

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的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

It has a text table accordingly:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

And fill some value into this check table:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

Our assigned check table could be found here:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

This assignment relationship is maintained in table AXT_EXT_PART_DTL:

 

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

SAP CRM Application Extension Tool类型为Code List的扩展字段实现原理
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud