Deploy SAPUI5 application to ABAP repository - sapui5

I started developping an UI5 application in SAP Web IDE. At this moment, I just run it in a test Fiori Launchpad. The next step will be to deploy it to our ABAP repository. I guess I need to adapt some parts of the application for this reason (or add some file). This is my actual project structure:
When I want to make it run on the ABAP AS...
Are there important files missing?
How should the manifest.json and Component.js be adapted? (e.g. paths)
Have you got some more hints?

if the application runs in the web ide, the application usually will run deployed to a server on this server as well. i.e.:
if the application runs in the web ide, there are no files missing.
if the application runs in the web ide, the Manifest.json and Component.json do not need to be adapted.
just test the application deployed: deploy the application through the web ide or go to transaction SE38 and run the program /UI5/UI5_REPOSITORY_LOAD. after deploying the application the same should be seeable in transaction SE80 within bsp applications. Then set up the application for the fiori launchpad: transaction LPD_CUST. After that set up the application in the fiori launchpad designer: transaction /UI2/FLPD_CUST. Thereafter create a role in transaction PFCG for the in the FLPD created group which contains the tile connected to the corresponding application. Now the tile for the application should be addable within the fiori launchpad.

Related

is it possible to develop and deploy application to the SAP-Fiori Launchpad

I want to develop some application for SAP Fiori with the OpenUI5, but I don't have acces to the SAP yet. So, my Question is:
Is it possible to develop application with OpenUI5 and deploy it to the SAP Fiori Launchpad after I get my access for it.
You need to complate below steps for registering your custom app to launchpad.
Upload your app as BSP application with /UI5/UI5_REPOSITORY_LOAD report.
Create new launchpad role in LPD_CUST t-code.
Add your app to this role with custom alias.
Create a new semantic object in /UI2/SEMOBJ t-code.
Create tile in Fiori Launchpad at http://yourserver/sap/bc/ui5_ui5/sap/arsrvc_upb_admn/main.html
Create role in PFCG t-code for Fiori Launchpad Catalogs in menu tab.
More details are in this blog post.
Not forget UI5 has multiple version, if you make your development with newer one, you cannot run it on old versions.
If you haven't got any SAP instance, you can install your own ABAP trial system with WebIDE.

Is it possible to test Standard SAP Fiori apps from Web IDE?

I have imported Standard SAP Fiori apps like HCM_PEP_PROFILE and HCM_LRQ_CRE in Web IDE (not creating an extension project for them)
I run these apps as 'SAP Fiori Launchpad Sandbox' and choose the Component.js file to be run. But I was unable to run these apps.
I tried to replace the standard app's 'neo-app.json'by right-clicking on the project and selecting 'New' > 'HTML5 Application Descriptor'.
This worked for HCM_LRQ_CRE and since the OData service was not on my system, it displayed an error but the rest of the app renders fine.
But if the do the same for HCM_PEP_PROFILE or a couple of other HCM apps, some other error is displayed and the app does not load at all
Is it not possible to run some of these apps from Web IDE?
Please help.

How do I deploy only certain parts of an app to SAP Cloud Platform?

I've imported an existing SAPUI5 app into SAP Web IDE and wish to deploy it to Hana Cloud Platform (HCP) SAP Cloud Platform (SCP) SAP Business Technology Platform (SAP BTP).
Unfortunately the structure is not just one app, rather 3 apps within a parent app folder.
When I deploy to HCP SCP SAP BTP, it simply picks up the first app and ignores the other 2.
Can any of the config files (neo-app.json etc) be changed to allow specific folders to be deployed?

Launch Fiori shell plugin before app component creation. How?

Introduction
I am running a testshell project as "Shell plugin" in the HANA Cloud Platform Fiori Launchpad. When I visit the Launchpad in the default front page (with all the tiles), the shell plugin is loaded right.
My shell plugin modifies some things in the navigation URL's, so I must ensure, that the shell plugin is loaded before the applications' Component.js is loaded.
Problem
But, when I start the Fiori Launchpad with a specific intent (for example https://HCP_URL/hrtest#requestleave-Display), the Component.js of the application requestleave is loaded first and then the shell plugins' Component.js.
From the documenation here https://help.hana.ondemand.com/cloud_portal_flp/frameset.htm?87764543e31247b5b471c06e3f6da6fc.html I read:
When you launch SAP Fiori launchpad, all applications that are marked as shell plugin are initialized while the launchpad is loading.
How can I ensure, that the shell plugin is loaded and initialized before it creates Components for the given applications?
That the app is loaded before the plugin is actually intended behavior. The main take here is that loading a plugin should not slow down the FLP/Application startup. This is why app initialization is started before plugin initialization.
Currently there is no way to overcome this behavior.
Why do you require to manipulate the URL before starting the app? Please provide more information so that we I can perhaps come up with an alternative.

How to integrate SAPUI5 apps developed on ABAP repository in HANA Cloud Platform

The scenario is to use already developed SAPUI5 applications on ABAP Gateway as portal widgets in sites developed through SAP HANA Cloud Platform,portal service.
I know we can add the ABAP backend gateway services using HANA Cloud connector and destination in HCP cockpit.
How to do we deal with the SAPUI5 applications.
a) Do we need to export them from the ABAP repository and import them into HCP web ide?
b) Can we directly deploy the same application on HCP as well and access it on the site?
In above both cases, what about the service calls made from within the app? wouldn't the urls be changed once the app is moved/imported to HCP [assuming app only makes call to relative urls.]
Any information/Documentation on this would be really helpful.
to both a) and b) my answer is Yes. With some reservation for a) as actually I just don't know of another method to deploy existing SAPUI5 apps from backend to HCP.
In my case the scenario was the following:
First, we installed HCP connector, linked it to existing S-users, then I defined a destination in my HCP account. Be aware that you have to add some specific attributes to the destination to make it available in WebIDE.
My task was to extend some existing SAPUI5 applications, so I imported them into WebIDE and it appeared that they worked just fine when running via WebIDE without changing a single line of code or configuration. Apparently they can be deployed to HCP as a standalone apps or as a part of Fiori launchpad.