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:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2721868/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP WebClient UI配置決定(configuration)的邏輯介紹WebclientUI
- SAP WebClient UI頁面標籤的決定邏輯介紹WebclientUI
- SAP CRM WebClient UI html 格式的 Text 顯示邏輯WebclientUIHTML
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- SAP CRM WebClient UI Text Type 顯示的過濾邏輯WebclientUI
- SAP CRM WebClient UI的Delta處理機制介紹WebclientUI
- SAP工作流介紹之ABAP Business Workflow介紹
- SAP CRM 裡 Attachment 搜尋的實現邏輯介紹
- SAP UI5 sap-ui-core.js的載入邏輯UIJS
- CRM WebClient UI和Hybris裡工作中心跳轉的url生成邏輯WebclientUI
- SAP CRM產品主資料ID的生成邏輯介紹
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- SAP CRM WebClient UI和Fiori UI混搭並存WebclientUI
- SAP CRM WebClient UI和Hybris backoffice UI開發的相同點WebclientUI
- 關於 SAP UI5 Device API 的使用介紹UIdevAPI
- 關於 sap.ui.base.Object 的簡要介紹UIObject
- SAP BSP和JSP頁面裡UI元素的ID生成邏輯JSUI
- SAP UI5 sap.ui.Device.media 的使用介紹UIdev
- SAP UI5 sap.ui.core.Element 的概要介紹UI
- ClickHouse 邏輯叢集介紹
- SAP UI5 sap.ui.Device.media.RANGESETS 的使用介紹UIdev
- SAP WebClient UI的白屏問題分析WebclientUI
- 創新實訓(七)部落格相關功能介紹及內部邏輯處理
- SAP UI5 sap.ui.export.Spreadsheet API 介紹UIExportAPI
- SAP UI5 BarcodeScannerButton 的初始化邏輯 - Cordova API 檢測等邏輯UIAPI
- SAP CRM WebClient UI和Hybris的controller是如何被呼叫的WebclientUIController
- SAP UI5 Theme Library 的解析邏輯和 SAP UI5 配置後設資料的預設值UI
- SAP UI5 setProperty 的執行邏輯單步調式和分析UI
- SAP UI5 sap.ui.Device.media.RANGESETS.SAP_STANDARD_EXTENDED 介紹UIdev
- SAP WebClient UI的會話重啟原理WebclientUI會話
- Nginx 相關介紹Nginx
- SAP CRM WebClient UI和Hybris Commerce的懶載入機制WebclientUI
- SAP UI5 Routing 路由介紹UI路由
- Drupal建站的相關介紹
- SAP UI5 Decision Table 的特性介紹UI
- SAP UI5 sap.ui.Device.media 公有方法介紹UIdev
- JMeter邏輯控制器完整介紹JMeter
- SAP CRM WebClient UI和ABAP Webdynpro頁面的互相跳轉WebclientUI