cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Core Library Not Found on 7.4 System

abdulbasit
Active Contributor
0 Kudos

Hi,

We've installed SAP NetWeaver 7.40 SP04 ABAP system. I'm trying to run basic SAPUI5 Hello World app on the system but I'm getting http 404 for sap-ui-core.js as shown below :

I cheked the UI Add-on and SAP_UI 7.40 0007 is installed on the system.

I'm including the UI5 library with the code :


<script id="sap-ui-bootstrap"

                 src="resources/sap-ui-core.js"

                 data-sap-ui-theme="sap_bluecrystal"

                 data-sap-ui-libs="sap.m">

</script>

Anyone has an idea what could be the problem ? I'm actually trying to configure Fiori on this system and having the same problem on Fiori apps.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

This is the relative path of sap-ui-core.js on ABAP server.

src="/sap/public/bc/ui5_ui5/resources/sap-ui-core.js"

Try with this as well. also please check in MIME repository that this file is available under path

sap->public->bc->ui5->libraries->ver-><version_folder>->com.sap.ui5.core->META-INF->resources->sap-ui-core.js

Regards,

Chandra

abdulbasit
Active Contributor
0 Kudos

Hi Chandra,

Thanks for giving me the light. When I looked at the MIME repository, there was 2 UI5 folder under the path sap/public/bc. One is uppercase and the other is lowercase. Lowercase one is created by my colleague (I don't know why!) and after deleting this empty folder everyting is started to work!

Thanks again...

Abdul.

Answers (2)

Answers (2)

Former Member
0 Kudos

You need to have "resources" folder in your code base. If you can't find one, then you need to manually copy-paste it from SAPUI5 SDK.

In order to make it work without copy-pasting the resources folder, you can use SAPUI5 CDN link. Replace the line:

src="resources/sap-ui-core.js"

With:

src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

Reference:

abdulbasit
Active Contributor
0 Kudos

This can be used for development purposes but normally UI Add-On has SAPUI5 libraries on the ABAP server. I can use the same syntax on another ABAP server.

Former Member
0 Kudos

Hi Abdulbasit,

Please change below line


src="resources/sap-ui-core.js" 

to -

src="/sapui5/resources/sap-ui-core.js" 

deploy and check please revert in case any doubt.

Regards

Jeetendra

abdulbasit
Active Contributor
0 Kudos

Thanks for the suggestion but it gives the same problem. Even it works in this way, standart Fiori apps also uses the following syntax :


src="resources/sap-ui-core.js"       

There seems to be a problem on my UI5 add-on, not in the code.