cancel
Showing results for 
Search instead for 
Did you mean: 

Run UI5 app with managed approuter in BAS

WouterLemaire
SAP Mentor
SAP Mentor
5,212

Hi all,

I followed this blog post https://blogs.sap.com/2020/09/11/building-a-central-launchpad-using-sap-cloud-platform-launchpad-ser... of murali.shanmugham to create a UI5 app using the managed approuter. All works fine when deployed. But when I try to run directly from BAS, I'm getting the following message.

Any idea how to solve this?

Thank you all in advance!

Kr, Wouter

View Entire Topic
yuval_morad
Product and Topic Expert
Product and Topic Expert

I suspect you root package.json lacksdevDependency "@sap/approuter": "8.1.x", "@sap/html5-repo-mock": "1.5.x",

Or

The env file attached to launch.json used by your local run, does not include the right xsuaa

I hope you can access these links

Try this one I recorded 3 months ago E2E flow using central App Router
https://sap-my.sharepoint.com/:v:/p/yuval_morad/EaR7wmPE_xFDscHXBaBiXSEBxuVfgtICtOYdY5ZVbsqgsA?e=B6N...

This is local run

https://sap-my.sharepoint.com/:v:/p/yuval_morad/Efeu7z-wN2pNrA7u6b2hwsYBLvJMAIvwda65vHLcmYS0vw?e=d76...

WouterLemaire
SAP Mentor
SAP Mentor
0 Kudos

Thanks yuval.morad , that works! Looks like the additional parameters when creating the xsuaa instance in BAS are very important 🙂 I created my service manually... Thanks again!

maissa93
Participant
0 Kudos

This is the exact issue that I am facing right now in spite of the proposed solutions here.

The issue is in run configuration is does not connect any instance nor datasource.

Can you share the .env file please where xsuaa is configured? I might have the wrong syntax.

roylerner3
Explorer
0 Kudos

Hi,

Does it work in trial account ?

I cant find neither the html5 tab under my workspace nor the given entitlements.

I deployed the newly built MTA file, I got some new service instances, but w/o routes/urls

"cf html5" command comes out empty from business studio.

Thanks.

yuval_morad
Product and Topic Expert
Product and Topic Expert
0 Kudos

The HTML5 menu in trial will probably come in Q1 this year.

Until then you can execute the from the terminal in BAS the following:

cf html5-list -di <destination service instance name in the mta> -u

Check my migration blog
https://blogs.sap.com/2021/01/14/migrating-sap-fiori-applications-from-neo-to-cloud-foundry-using-sa...

and formal documentation

https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/83b0fb23e37d456caad1ad0448e...

0 Kudos

Hello yuval.morad ,

How do we check if "The env file attached to launch.json used by your local run, does not include the right xsuaa" ? I am facing the same problem as listed above, I've added redirect_uris as well, but still I am getting the error. Also I did not define the run configuration for the destination but I have default-env.json file that has configuration for the destination.

yuval_morad
Product and Topic Expert
Product and Topic Expert
0 Kudos

You would need to describe your flow accurately:

1. Local run of Fiori app? for CF/ABAP? using managed approuter or standalone approuter

2. Which local run is used html5-repo-mock?

3. Reuse library consumption? from the same MTA or not

4. Data source consumption? from a destination of BE app in CF

5. Role test yes/not

In general this requirement of binding to XSUAA is not required anymore for local run using latest version in dev-dependency "@sap/html5-repo-mock": "2.0.x"