on 2020 Aug 10 8:36 PM
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:
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
Request clarification before answering.
We are facing exactly same problem. Does anyone found a solution? Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
11 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.