cancel
Showing results for 
Search instead for 
Did you mean: 

How to run FIORI app which is using reusable library in SAP WEBIDE ?

Former Member

Hi,

I want to extend and run 'RT_COUNT_STOCK' (Count Stock) application in SAP WEBIDE. But since the application is using a reusable library which is deployed as 'RTST_REUSE', the application is failing to run in WEBIDE.

I get the following error:

Inline image 1

I have imported 'RTST_REUSE' application as well in my workspace, but still the 'RT_COUNT_STOCK' app does not run.

Please help.

Thanks and Regards,

Vinuta

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor

You will need an entry in the neo-app.json that defines where the app will be ran from. You can find some related threads that detail the issue

https://archive.sap.com/discussions/thread/3869225

Regards,

Jamie

SAP - Technology RIG

junwu
Active Contributor
0 Kudos

will it work for local run?

maheshpalavalli
Active Contributor
0 Kudos

yes, we need to update the neo-app.json which points to the reuse library path. When we import it for the first time and run the main app it doesnt know where to load the reuse library from as far as i know, so we need to do the additional step.

Best Regards,

Mahesh

Former Member
0 Kudos

Thanks Jamie,

Adding the path (pointing to gateway server) in neo-app.json worked for me.

However pointing the path to local workspace even after changing the run configuration to "Use my workspace first" did not work.

Thanks and Regards,

Vinuta

Answers (4)

Answers (4)

michal_keidar
Active Contributor

You can also import the lib to your workspace and in the Run Configuration of your app check the "Use my workspace first" option.
See more details in our documentation: https://help.hana.ondemand.com/webide/frameset.htm?00c2104830e342028171629dbfd2f96c.html

junwu
Active Contributor
0 Kudos

what's the point to take so much effort to make it run on web ide?

they are complete different runtime.

what if there are more reused lib....after this, how about consuming the backend data?

for me, it just didn't justify the effort.......

Former Member
0 Kudos

Thanks for the response Michal Keidar, but running the library from local resource did not work for me even after making changes to Run configuration. However I'm pointing the path to gateway system now and it works.

@Jun Wu, Since development is easier if we run the application in WEBIDE. I need not deploy to server each time after making small changes. Hence I prefer making it work on WEBIDE.

Thanks and Regards,

Vinuta

junwu
Active Contributor
0 Kudos

you are also able to get the data?

driss_essika
Explorer
0 Kudos

Please , How can i run my extension application on my SAP Cloud Plateform PORTALS ?

Issues : Error: failed to load 'cus/crm/myaccounts/Component.js' from https://sapui5.hana.ondemand.com/1.60.8/resources/cus/crm/myaccounts/Component.js: 404

It's working fine on the on premise fiori launchpad and from test on webide.

driss_essika
Explorer
0 Kudos

Hi,

I deployed my extension application to my SAP Cloud Plateform. But when i launch the application from my portal site i have errors :

Error: failed to load 'cus/crm/myaccounts/Component.js' from https://sapui5.hana.ondemand.com/1.60.8/resources/cus/crm/myaccounts/Component.js: 404

I would like set my application to the cloud portal.

From my on Premise Launchpad, from "weide", and directly from my SCP Application the app running well.

How can i do to fix it ?

junwu
Active Contributor
0 Kudos

just deploy to server to run

Former Member
0 Kudos

Hi Jun,

I need to extend the application and test if the extended application is working correctly in sandbox before deploying to server.

Thanks and Regards,

Vinuta

junwu
Active Contributor
0 Kudos

if it is not working, just make it work, why waste time?

maheshpalavalli
Active Contributor
0 Kudos

wow!!!, thats why he/she is asking the question 🙂

Best Regards,

Mahesh

junwu
Active Contributor
0 Kudos

I don't think you get it.

deploy to abap server, he may not have this lib issue we are talking now.

kammaje_cis
Active Contributor

Hi Jun Wu,

Deploying to the server is not the right solution. Making it run from WebIDE has advantages and no reason to miss those. I do not think we should discourage the question.

-Krishna (Moderator)

junwu
Active Contributor
0 Kudos

I don't think you get the question.

michal_keidar
Active Contributor

I don't think you got the question....