SAP CRM Fiori應用冗餘round trip的原因分析
# Sent: Wednesday, July 22, 2015 7:54 PM
有同事抱怨每次他們儲存一個appointment時,除了正常的batch 操作外,還有3個莫名的read 操作。
The callstack clearly shows that the three roundtrips are NOT issued by customer extension, or else the customer js file could be observed in the callstack.
Set a breakpoint on the top most callstack, h function. Check the content of e.target.data:
This is actually the batch request payload which could be observed in Chrome network tab:
This finding gives me more confidence that these roundtrips are issued by framework, not standard or customer application code.
So I just continue debugging until I reach this suspicious stack:
in line 1957, this.bRefreshAfterChange = true.
However, in our internal system ( where everything works fine, there is no duplicate read operations ), this.bRefreshAfterChange = false, which has suppressed the refresh operation. This is the reason why the read operation could not be found in my internal system, since they are not executed at all. But in customer system, _isRefreshNeeded returns true, which leads to the execution of all subsequent read operations.
So why is this difference between two systems? In Chrome development tool, search the boolean variable name and we found one function setRefreshAfterChange defined for ODataModel. Just set a breakpoint in this method and re-launch the application in my internal system from beginning:
Breakpoint is triggered:
However, this line in customer system is missing, which is the root cause - our latest standard code didn't reach customer system.
出問題的系統上的標準程式碼裡少了這一行,我在local的Eclipse裡試過,如果註釋掉,behavior就和出問題的系統上一樣,能夠重現那三個多餘的讀操作了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2678931/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM Fiori應用和SAP JAM的整合配置
- SAP CRM Fiori 應用裡無法根據當前文件建立 Followup Opportunity 的原因分析Unity
- SAP CRM Fiori 應用的 Deep Create 行為和實現分析
- SAP Fiori應用裡出現http request錯誤的原因分析HTTP
- SAP Fiori應用沒能從Fiori Launchpad啟動的一個可能原因及分析過程
- SAP Fiori應用發生超時錯誤的一個可能原因
- SAP Fiori應用索引大全索引
- SAP CRM,Cloud for Customer和Fiori應用的direct navigation比較CloudNavigation
- SAP Fiori應用索引大全工具和 SAP Fiori Tools 的使用介紹索引
- 如何分辨 SAP Fiori Launchpad 裡的真假 Fiori 應用
- SAP CRM Fiori應用如何啟用Sales Office和Sales Group兩個欄位
- 如何免費試用SAP的Fiori應用
- SAP Fiori應用的搜尋問題
- SAP Fiori應用的三種部署方式
- SAP CRM note建立按鈕被禁用的原因分析
- SAP Fiori 應用 Manage Workflows for Purchase RequisitionsUI
- 關於 SAP Fiori 應用的離線使用
- SAP Fiori Elements 應用裡和 Fiori 3 相關的外觀設定
- SAP CRM WebUI, CRM Fiori和C4C裡的Direct NavigationWebUINavigation
- SAP Fiori Launchpad 應用的兩個實用技巧分享
- SAP Fiori應用裡日期格式的顯示奧祕
- 移動應用之SAP Fiori
- SAP CRM Fiori 應用和 SAP 電商雲 UI 如何通過調整CSS來改變UI顯示風格UICSS
- 如何讓SAP S/4HANA的Material Fiori應用配置到Fiori Launchpad裡
- SAP CRM Fiori Simulation Pipeline 設計介紹
- SAP CRM WebClient UI和Fiori UI混搭並存WebclientUI
- 如何在SAP Fiori應用裡使用React componentReact
- 如何給 SAP Fiori Elements 應用的欄位新增 value help
- 找出冗餘索引的指令碼索引指令碼
- SAP Fiori 應用 url 中的 DraftUUID 引數的含義RaftUI
- 如何用WebIDE開啟並執行CRM Fiori應用WebIDE
- 如何給 SAP Fiori Elements 應用新增自定義按鈕
- 虛擬機器技術應用於應用系統統一備份和冗餘虛擬機
- SAP Fiori Elements 應用的 i18n 語法使用方式
- 使用View modification擴充套件SAP Fiori應用的一個案例View套件
- ABC 320F Fuel Round Trip
- 用 React 結合 SAP UI5 Web Components 來開發 SAP Fiori 應用ReactUIWeb
- 網路冗餘技術