cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 application resources in Fiori launchpad

0 Kudos
2,262

Hello All

I have encountered the problem while running my SAPUI5 application from Fiori Launchpad. I have checked all resources I could find, but didn't find the resolution. So here is the situation:

1. Launchpad is set up on on premise abap system

2. Problem is quite common - access to local application resources doesn't work.

3. It works fine (even from the same server) when app is running as standalone (i.e. via index.html)

4. When I test it directly from the cloud, request for the file looks like this (it works fine):

https://XXXXXXXXXX.eu2.hana.ondemand.com/~1596725170000~/webapp/localResources/file_en.json

5. Now: when standalone app is requesting the resource from abap system, url looks like this (it also works fine):

https://111.111.111.111:1111/sap/bc/ui5_ui5/sap/zapp_name/localResources/file_en.json

while model get code is:

var file = sap.ui.require.toUrl("namespace1/namespace2/localResources/file_en.json");
			var oModelL = new sap.ui.model.json.JSONModel();
			oModelL.loadData(file);

The same code in FLP generates following request:

https://111.111.111.111:1111/sap/bc/ui5_ui5/ui2/ushell/resources/~20200507075300~/namespace1/namespa...

Which fails with message:

"Resource not found. Check the Application Log for External ID "UI5 bootstrap"."

My application uses namespace namespace1.namespace2, file is located in localResources folder.

I have found information, that for abap system based FLP something else should be put in namespace1/namespace2 place. Even ABAP package name was suggested, but it still didn't work.

Is it possible, that approach is correct, but some configuration on abap system needs to be adjusted?

I would appreciate any help from you here, because I'm running out of options.

Thanks in advance,

Maciej

Accepted Solutions (0)

Answers (1)

Answers (1)

waidokas
Discoverer
0 Kudos

We are facing exactly same problem. Does anyone found a solution? Thank you