8.2 Setting Up SAP Web IDE with SAP Cloud Platform
In this section, we’ll show you how to set up a development environment with SAP Web IDE on SAP Cloud Platform. Currently, SAP Cloud Platform is available for productive use in the following locations:
-
Australia
https://account.ap1.hana.ondemand.com/cockpit -
Europe
https://account.hana.ondemand.com/cockpit -
US East
https://account.us1.hana.ondemand.com/cockpit -
US West
https://account.us2.hana.ondemand.com/cockpit
In addition, SAP is offering SAP HANA cockpit for trial use at https://account.hanatrial.ondemand.com/cockpit.
To set up the development environment with SAP Web IDE on SAP Cloud Platform, follow these steps:
- Start the SAP HANA cockpit at https://account.hanatrial.ondemand.com/cockpit.
- Enter your login credentials, and click Log On. If you don’t have an account, you can register by clicking the Register button.
- After you’re logged on, your screen should look like Figure 8.3.
-
Click Services.
Figure 8.3 SAP HANA Cockpit
- Click the SAP Web IDE tile.
- Click Enable, then click Save (see Figure 8.4).
- Click Open SAP Web IDE under the Service Description area to launch SAP Web IDE (see Figure 8.5).
Figure 8.5 SAP Web IDE
You’ve now successfully enabled and launched SAP Web IDE. Next, you need to create a connection to the back-end system. Then, we’ll show you how to create a destination for multiusage. The destination setup depends on where the back-end server exists (i.e., if it’s available publicly via the Internet or exists behind a firewall).
The following steps will configure the destination if the ABAP back-end server is publicly accessible on the Internet:
- Go to the homepage of the SAP HANA cockpit and click Destinations. Click New Destination (see Figure 8.6).
-
Enter or select the following information (see Figure 8.7):
- Name: Enter “Connection1”.
- Type: Choose HTTP.
- Description: Enter “Connection 1” (description will be visible in SAP Web IDE during app creation).
- URL: Enter “<protocol>://<host>:<port>”.
- Proxy Type: Choose Internet.
- Cloud Connector Version: Choose 2.
- Authentication: Choose NoAuthentication.
Figure 8.7 Destination Properties
SAP Cloud Platform Cloud Connector
If your back-end server resides behind a firewall, then you need to set up the SAP Cloud Platform cloud connector. The cloud connector integrates SAP Cloud Platform with existing on-premise systems. There are two versions of the cloud connector: the developer version, which can be installed on your system easily without administrator rights, and the productive version, which requires administrator access to install.
Installation of the SAP Cloud Platform cloud connector is simple and straightforward. Download the developer version from https://tools.hana.ondemand.com/#cloud, and follow the instructions from the online help. After you add the back-end system to the cloud connector, you need to add the destination in SAP Web IDE with the following details (refer to the previous step):
- URL: “<protocol>://<virtual host>:<virtual port>”
- Proxy Type: OnPremise
-
Click New Property under the Additional Properties section, then enter the following values:
-
WebIDEUsage: This property defines access to the URL paths:
- odata_abap grants access to the OData functionality of SAP Gateway.
- odata_gen grants access to the generic OData functionality.
- ui5_execute_abap grants access to execute SAPUI5 applications from the SAPUI5 ABAP Repository.
- dev_abap grants access to develop apps or deploy apps to the SAPUI5 ABAP Repository.
- bsp_execute_abap grants access to work with fact sheet apps.
- plugin_repository grants access to the optional plugins.
- odata_xs grants access to SAP HANA XS OData services.
- sap-client: 120 (the SAP client from the ABAP system)
- WebIDEEnabled: true
- WebIDESystem: ERP (WebIDESystem is the SAP system ID)
-
WebIDEUsage: This property defines access to the URL paths:
- After you’ve entered the values, your screen should look like Figure 8.8.
- Click Save to save the connection.
You’re now set up to use SAP Web IDE to develop SAP Fiori apps. In Chapter 9 and the remainder of this book, we’ll be using this connection to create or extend SAP Fiori apps.
Figure 8.8 Additional Destination Properties