cancel
Showing results for 
Search instead for 
Did you mean: 

Pointing SAP UI5 App On prem in SAP FIORI Cloud Errors with 404

selvakumar_mohan
Active Participant

I am experimenting with having an SAP UI5 App deployed in the SAP S4 HANA On-Prem box and having it configured as an APP on SAP FIORI on Cloud. My config set up is as below:

When the app is tested, the following URL is generated.

https://<servername>:1443/sap/bc/ui2/flp/ui5appruntime.html?sap-ui-app-id=<component_name>&sap-startup-params=&sap-shell=FLP&sap-touch=0&sap-ui-versionedLibCss=true&sap-theme=sap_fiori_3&sap-iframe-hint=UI5&sap-client=100&sap-language=EN.

when debugging the back end system, system tries to find the path - /ui5appruntime.html and fails, which is obvious. Is this how we configure a UI5 app residing in the back end or am I missing something.

Referred few blog none seems to help. Any guidance would be appreciated.

Accepted Solutions (0)

Answers (3)

Answers (3)

SamueleBarzaghi
Participant

Knowledge sharing, our problem has been resolved.

It turns out that the cloud connector was configured to access the internal host using HTTP instead of HTTPS.

As a result, the first response to the ui5appruntime was redirecting to HTTPS with the internal hostname.

We were able to fix the issue by changing the settings in the cloud connector from HTTP to HTTPS.

AviadRivlin
Employee
Employee
0 Kudos
SamueleBarzaghi
Participant
0 Kudos

Hi aviad.rivlin,

We have the same problem, the last URL called is the local url of the backend is not the url of the BTP destination.

Do you have any suggestion?

Thanks

Regards,

Sam

vbalko-claimate
Active Participant
0 Kudos

hello selvakumar.mohan ,

did you resolved the problem? I have very similar or maybe same problem.

I added application from onpremise backend system (connected through SCC). Application seems to be opening, because in console I see

20:15:59.226 login [INFO] Starting login controller
<id>-sapdelim-<destination>.launchpad.cfapps.eu10.hana.ondemand.com/sap/public/bc/ui2/logon/fiori3/js/redirect.js:942 

20:15:59.227 login [INFO] Starting login controller
<id>-sapdelim-<destination>.launchpad.cfapps.eu10.hana.ondemand.com/sap/public/bc/ui2/logon/fiori3/js/redirect.js:942  

20:15:59.227 login [INFO] Navigating to https://<onprem url>/sap/bc/ui2/flp/ui5appruntime.html?sap-ui-app-id=snt.zcon.create1&sap-startup-params=dokar%3dCON&sap-shell=FLP&sap-touch=0&sap-ui-versionedLibCss=true&sap-theme=zentiva_fiori3%40https%3a%2f%2fzaws.launchpad.cfapps.eu10.hana.ondemand.com%2fcomsapuitheming.runtime%2fthemeroot%2fv1&sap-iframe-hint=UI5
zaws-sapdelim-testcnrbasic.launchpad.cfapps.eu10.hana.ondemand.com/sap/public/bc/ui2/logon/fiori3/js/redirect.js:942 

20:15:59.483 login [INFO] Framing allowed, activating application

So at first some framework starts redirecting to the backend and it seems to be partially sucessfull, because the last URL is local url defined in SCC configuration. And calling that on prem url is obviously not succesfull, because it works only inside of corporate network.

fabian_gagel1
Explorer

Hello Vladimír,

have you solved this issue?

Thanks and best regards,

Fabian

SamueleBarzaghi
Participant
0 Kudos

Hi vbalko_effiis,

We have exactly the same problem, the last URL is the local url of the backend.

Have you solved?

Thanks you

Best Regards,

Sam