专栏首页Jerry的SAP技术分享SAP WebClient UI和business switch相关的逻辑介绍

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

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

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.

The same logic for navigation link and component usage:

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.

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.

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:

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:

The switch handling is done by the processor method PROCESS_CONFIG_XML:

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 )

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.

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.

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.

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:

The corresponding logic could be found in method below:

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • SAP Fiori OData取数据的同步模式和异步模式比较

    Yesterday I was challenged by my colleague: in the CRM Fiori application “My Opp...

    Jerry Wang
  • SAP Hybris Commerce功能介绍:Consignment tracking

    This new feature is developed by Chengdu Hybris dev team. When a customer decide...

    Jerry Wang
  • SAP S/4HANA系统Fiori UI上Adapt UI按钮显示与否的控制逻辑

    I use the same user to log on the same system, however some times the Adapt UI b...

    Jerry Wang
  • SAP Fiori OData取数据的同步模式和异步模式比较

    Yesterday I was challenged by my colleague: in the CRM Fiori application “My Opp...

    Jerry Wang
  • Holiday -- hack the box

    Holiday is an insane box officially. It's really difficult to get the user permi...

    madneal
  • DAY12:阅读CUDA C Runtime 之多GPU编程

    GPUS Lady
  • SAP Hybris Commerce功能介绍:Consignment tracking

    This new feature is developed by Chengdu Hybris dev team. When a customer decide...

    Jerry Wang
  • 分布式计算中的8个谬论

    Eight-Fallacies-of-Distributed-Computing-Tech-Talk

    zhuanxu
  • [security] Go 1.11.3 and Go 1.10.6 pre-announcement

    We plan to issue Go 1.11.3 and Go 1.10.6 on Wednesday, December 12 at

    李海彬
  • windows平台下redis安装及配置文件介绍

    redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(...

    写代码的猿

扫码关注云+社区

领取腾讯云代金券