# SAP CRM Application Extension Tool的Custom Behavior

+关注继续查看

I introduce one approach to define your extension field with your specific logic via calculated field supported in CRM Application Extension Tool ( AET ).

If your logic is too complex to be covered by the embedded formula in calculated field editor in AET, for example there are some ABAP coding involvled, you can try another apporoach:

(1) Create a new entry in table AXT_BEHAVIOR

(2) Your custom behavior could be implemented in class ZCL_AXT_CUSTOM_BEHAVIOR, which inherites from class CL_AXT_ABST_BEHAVIOR_HDLR.

Depending on your logic, different methods must be redefined.

For my requirement, I just would like to add a timestamp each time the extension field is maintained, so I have to only redefine the following methods.

a. define the appearance of extension field:

(3) When you create extension field, choose “Not defined” as Field type, and choose the entry maintained in step1 as “Render/Validate As”:

Click Enable Expert Mode and assign one data element to this extension field:

Generate the extension field and make it visible in WebUI. After I maintain some value for this field and click save:

the ADJUST_SET method of handler class is called and the timestamp is appended:

26776 0

10880 0

12069 0
windows server 2008阿里云ECS服务器安全设置

9154 0

11814 0

4653 0

7456 0

4490 0

22364 0
+关注
2628

0

+ 订阅

《2021云上架构与运维峰会演讲合集》

《零基础CSS入门教程》

《零基础HTML入门教程》