Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

HR Renewal broken after upgrading SAP_UI (UI5 1.36)

$
0
0

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.

Image 64.png

 

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:

photo_2016-04-28_11-13-38.jpg

 

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.

Image 63.png

 

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?


Viewing all articles
Browse latest Browse all 2069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>