HR Renewal 2.0 FP 3 (EA-HR 608 SP 12)
SAP_UI SP3 (including UI5 1.36)
After upgrading SAP_UI to SP3 loading HR Renewal landing page results in an error.
Some reference to a util.js file is incorrect.
"/sap/public/bc/ui5_ui5/resources/sap/ui2/srvc/utils.js" is not found - in fact it's not the correct path.
I believe to have found the underlying issue.
In "/sap/public/bc/ui2/services/sap/ui2/srvc/error.js" there is the following code:
if (typeof jQuery === "function" && jQuery.sap) {
jQuery.sap.declare("sap.ui2.srvc.error");
jQuery.sap.require("sap.ui2.srvc.utils");
}
I've put a breakpoint on L20 in error.js and then checked what modulepath was set for this reference:
jQuery.sap.getModulePath("sap.ui2.srvc")
11:22:19.494 "/sap/public/bc/ui5_ui5/resources/sap/ui2/srvc"
My guess is that the module path sap.ui2.srvc has never been set correctly and therefor it's falling back to the default resource path.
I could repair main.html and patch this myself by adding the following line.
jQuery.sap.registerModulePath("sap.ui2.srvc", "/sap/public/bc/ui2/services/sap/ui2/srvc/");
But in fact, I'd like to know exactly why this issue is suddenly appearing with the upgraded SAP_UI component and patch it in the correct place.
Can you help?