Cloud Deployment and Configuration
Deploying and running your applications to the SAP Cloud Platform (SCP) requires the base FAB application to be installed. The FAB application is provided as a ZIP file that can easily be imported. Once the core application is installed, it will allow you to run any of your dynamic applications without the need for further application installation. The only requirement for this is that SCP's OData Provisioning Service is used to serve up all your OData services. If the services are being served from the SAP Gateway system on-premise, then special care must be taken in how the service URLs are referenced as in a SCP deployment, the application is running in the SCP space (https://[app-name].dispatcher.hanatrial.ondemand.com) and the services will be served from another server. This means that relative URLs will not work in this scenario.
Performance
Those apps requiring the best performance via use of standard caching techniques are candidates for individual installation into the SCP platform. Instructions to install individual applications is described below.
Installing the FAB Application into your SCP Instance
- Log into the SAP Cloud Platform Cockpit
- Expand the Applications menu group on the side and select HTML5 Applications
- Select the Import from File option
- Upload the FAB SCP Install ZIP file and provide details for the Application Name (fab) and Version Name (Version number in major.minor.patch format. e.g. 2.3.0)
- Once the upload is complete, ensure the application shows "Started" in the status column. The application is not started, click the play button in the actions column.
Installing your Custom Applications into SCP
Option 1: Using Eclipse
- Convert the app to a offline application using the standalone and offline checkboxes in the property dialog within the FAB developer workbench. (FAB already exists as a BSP/standalone application)
- Use Eclipse to extract the application. (See here for details - Exporting an Application using Eclipse)
- Right click the web-content folder and export to an archive
- Open the archive and rename the web-content folder to webapp. (Zip again if necessary)
- Open up the WebIDE full stack.
- Create a new project
- Right click on the newly created project and use the Import from file option.
- Use the ZIP file you created.
Deploying FAB Core to SAP Systems lower than 740
This is the recommended approach when working on a SAP version lower than 740. The reason being is that the ADT service/node will not be available in those systems and using SAP WebIDE to access the SAPUI5 repository will not work.
Option 2: Using SAP WebIDE
- Convert the app to a offline application using the standalone and offline checkboxes in the property dialog within the FAB developer workbench. (FAB already exists as a BSP/standalone application)
- Ensure you have a Destination created for the HTTP connection to the required SAP backend
- Open SAP WebIDE
- Go to the Home page
- At the bottom there should be an Import from SAP UI5 Repository option
- Select the destination for the SAP system
- Search for the application and select it.
- After the import, right click on the Web-Content folder and rename to webapp
VERY IMPORTANT
You may also need to manually copy the following folders and files into the project once created.
- /controls
- /core
- /scripts
- /searchHelps
- /Formatter.js
- /userFunctions.js
IQX Business Solutions - FAB 2.40