日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2023/12/19 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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
Retrieved from method get_implicite_cnode_attr,

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:

REPORT zget_ui_context_node_attr.PARAMETERS: comp TYPE string OBLIGATORY DEFAULT 'BT116H_SRVO',cs TYPE string OBLIGATORY DEFAULT 'CL_BT116H_S_DETAILS_CN00'.DATA(lo_model) = cl_bsp_wd_appl_model=>get_appl_model(EXPORTING iv_bsp_appl = CONV #( comp )iv_model_type = 'CL_BSP_WD_APPL_MODEL_DDIC' ). DATA(lt_attr) = lo_model->get_context_node_attr( iv_context_node_class = CONV #( cs )iv_mark_ext_attributes = 'X' ).LOOP AT lt_attr ASSIGNING FIELD-SYMBOL(<attr>).WRITE:/ <attr>. ENDLOOP.

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

總結

以上是生活随笔為你收集整理的SAP WebClient UI开发工具中attribute文件夹展开的实现原理分析的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。