SAP WebClient UI和business switch相关的逻辑介绍-阿里云开发者社区

开发者社区> jerrywangsap> 正文

SAP WebClient UI和business switch相关的逻辑介绍

简介: SAP WebClient UI和business switch相关的逻辑介绍
+关注继续查看

Do you know the meaning of these two checkboxes in F2 popup?


image.png


Let’s first learn some prerequisite knowledge:

In Webclient UI workbench the poweful functionality is provided to ensure that the given feature is only available, if the bound business switch is in active status. For example you can open component BP_HEAD and find many view are added to overview area with a related business switch.


image.png


The same logic for navigation link and component usage:


image.png



in this blog we have discussed the ui configuration logic and know the customer configuration precedes the sap configuration. After the correct configuration is determined and IF it is sap configuration, framework will load the configuration xml data with the logic below:


(1) if pre_proc_active_config_s is X ( we will discuss how this flag is initialized later )

framework will first try to load configuration data from tableBSP_DL_XMLST_PR( Processed Standard Configuration for switch related handling ), if nothing found, then try BSP_DL_XMLSTRX2instead ( Storagetable for delivered XML layout descriptions ).


For customer configuration, the configuration data is always loaded from table BSP_DL_XMLSTRX2.


image.png


In order to verify the described process above, I create a simple component with one overview page which contains only one assignment block which are bound to a business switch. The switch is set as deactivated.

image.png



Then I launch the UI. Since it is the first time the UI is accessed, it is apprarently that no entry for ZSWITCH in table BSP_DL_XMLST_PR,

so data is fetched from BSP_DL_XMLSTRX2 instead. BSP_DL_XMLSTRX2 stores configuration data which does not take switch handling into consideration.

After that, framework will try switch handling centrally in method DO_SWITCH_REL_HANDLING_RT:


image.png


In this method, you can find the processor for each type of switch related handling. In my example ( overview page) it is CL_BSP_DLC_LIST_BASED:


image.png


The switch handling is done by the processor method PROCESS_CONFIG_XML:


image.png


The assignment block view is considered as inactive due to the deactivated switch, however it is put to , so the ev_changed is set to X ( the checkbox Changed by Switch processing in F2 )


image.png


Finally the switch processing result is persisted to table BSP_DL_XMLSTRX2. So when the UI is reopened next time, the stored entry will be fetched instead.


image.png


When is pre_proc_active_config_s set to X

it is controlled by CL_BSP_DLC_CONFIGURATION2=>SWITCH_PROC_ACTIVE_CONFIG_S but could be deactivated via user parameter BSP_DLC_SWITCH_PROC.


image.png


CL_BSP_DLC_CONFIGURATION2=>SWITCH_PROC_ACTIVE_CONFIG_S will by default only be set to X if current system is set up as customer system.


image.png


You could also set value VDTVRT to the user parameter, then UI framework will raise a notification message for you once the switch related handling is detected:



image.png


The corresponding logic could be found in method below:

image.png


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
SAP Fiori Elements里Smart Link工作原理介绍
SAP Fiori Elements里Smart Link工作原理介绍
14 0
怎么设置阿里云服务器安全组?阿里云安全组规则详细解说
阿里云服务器安全组设置规则分享,阿里云服务器安全组如何放行端口设置教程
8384 0
Web开发小工具介绍
Web前端开发小工具介绍。
1090 0
SAP Commerce Cloud OAuth 实现介绍
SAP Commerce Cloud OAuth 实现介绍
7 0
Web Storage API的介绍和使用
Web Storage为浏览器提供了方便的key value存储,是一种比cookie更加方便简洁的存储方式。也是诸多客户端存储方式中非常常见的一种。
1770 0
+关注
2628
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载