# SAP WebClient UI开发工具中attribute文件夹展开的实现原理分析

+关注继续查看

For project reason I need to figure out the logic how the field list is assembled when folder “Attributes” for a given context node is expanded in CRM WebClient UI workbench:

Debugging entry point is CL_BSP_WD_GUI_LIST_TREE~ON_EXPAND_NO_CHILDREN：

There are three kinds of fields which will appear under “Attributes” folder:

(1) direct attribute

get the public method list of context node class with naming convention that method name starts with GET_, and have one importing parameter ATTRIBUTE_PATH and one returning parameter VALUE.

And then extract the attribute name and stored it to internal table lt_direct_attribute.

Once the direct attribute of the current context node class has been extracted, there is a recursive call with the same extraction logic on the super class.

Since I am using UI component BT116H_SRVO, context node BTADMH to debug, the inheritance hierarchy from children to parent in this example is:

CL_BT116H_S_DETAILS_CN00 -> CL_CRM_UIU_BTADMINH_CN -> CL_CRM_UIU_BT_EASYCNDENTRY_FCN -> CL_BSP_WD_CONTEXT_NODE -> CL_BSP_MODEL

For example, there is a method GET_BILL_BLOCK_STATUS with the specified signature,

so BILL_BLOCK_STATUS is regarded as one direct attribute for this context node:

(2) implicit attribute

Attributes defined in DDIC structure CRMST_ADMINH_BTIL are regarded as implicit attribute.

This structure is bound to context node BTAdminH in Genil model editor.

(3) AET attribute ( Application Enhancement Tool )

In fact AET attribute could be regarded as a special kind of implicit attribute as it is physically appended to EEW structure just the same way as implicit attribute. AET fields are retrieved via method get_extension_cnode_attr:

Those fields are retrieved with API cl_axt_uif_access=>get_ext_attributes and marked with prefix EXT in UI component workbench:

You can use the following report to print out the attribute list of a given UI component’s context node:

Android官方开发文档Training系列课程中文版：通过NFC共享文件之发送文件到另一台设备

714 0

1558 0
Kotlin里的Extension Functions实现原理分析
## Kotlin里的Extension Functions Kotlin里有所谓的扩展函数(Extension Functions)，支持给现有的java类增加函数。 * https://kotlinlang.org/docs/reference/extensions.html 比如给String增加一个hello函数，可以这样子写： `java
1169 0
Android官方开发文档Training系列课程中文版：分享文件之分享一个文件

672 0

649 0
SOFAJRaft-RheaKV MULTI-RAFT-GROUP 实现分析 | SOFAJRaft 实现原理
《剖析 | SOFAJRaft 实现原理》第五篇，本文将从 RheaKV 是如何利用 MULTI-RAFT-GROUP 的方式实现 RheaKV 的高性能及容量的可扩展性的，从而进行全面的源码、实例剖析。欢迎阅读～
611 0
+关注
2628

0

+ 订阅

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

《零基础CSS入门教程》

《零基础HTML入门教程》