After using the SAP WebIDE to create a simple SAPUI5 project, it works correctly from Web IDE, but when the application is deployed in the backend it does not run properly. The browser debugger shows an error similar to this one:
Uncaught ReferenceError: sap is not defined
Which means that the SAPUI5 resources are not correctly addressed in the application and cannot be found.
This KBA intends to explain how the resources must be addressed in the application when working with the WebIDE.
SAPUI5, SAP WebIDE, SAPNetWeaver ABAP or Java
SAPUI5, WebIDE, uncaught ReferenceError, src=“/resources/sap-ui-core.js“, resources , KBA , CA-UI5-COR , SAP UI5 Core and Runtime , How To
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.