SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯

i042416發表於2020-08-26

標題:Why I could not see Organizational management assignment block in Service Order Overview Page

For example I can see this assignment block for Sales order:


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


However in service order overview page, this assignment block is missing:


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


I checked the configuration in UI component BT116H_SRVO and this assignment block is already there:


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


Unfortunately it still does not appear in the Available Assignment Blocks list when personalization button is clicked. So this view must be filtered out in the runtime based on some rules.


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


Then I am doing check in component BSP_DLC_PERS where the assignment block personalization is implemented, and trying to find some logic written in its controller class.


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


And I found a promising method: PREPARE_OUTPUT_4_OVW. In this method UI framework call Service Order overview page controller’s DETACH_STATIC_OVW_VIEWS to get the filtered out view in the runtime.


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


Now it turns out very clearly that the filtering logic is done in method DETACH_STATIC_OVW_VIEWS of Service Order controller, and here it is:


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


The criteria whether a given assignment block must be displayed in one order overview is controlled by the corresponding flag populated in function module CRM_INTLAY_DEACT_PTRD.

For the service order I am using for test, since there is no organization profile assigned to the transaction type, so the organizational management assignment block is decided to be hidden in overview page accordingly.


SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


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

SAP CRM服務訂單頁面顯示組織結構管理區域的實現邏輯


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2714997/,如需轉載,請註明出處,否則將追究法律責任。

相關文章