SAPUI5 Development Environment Setup

Setup SAP Web IDE as your SAPUI5 development environment. SAP provides SAP Web IDE trial account free of cost. SAP Web IDE is a powerful platform for development of SAP UI5, SAP Fiori and other full stack business apps.

Start SAP Web IDE

The development environment we choose for SAPUI5 development is SAP Web IDE. To access SAP Web IDE, you should have an account in SAP Cloud Platform.

Don’t worry, SAP has given trial version which is absolutely free of cost. Login to SAP Cloud Platform at https://www.sap.com/cmp/td/sap-cloud-platform-trial.html . If you don’t have an account with SAP Cloud Platform, click Register button and register a free trial account for yourself.

sap hana cloud trial account

Follow the usual process of registration. You will need an email account as well as a valid mobile number for verification. Keep both the things handy.

After creating your SAP Cloud Platform account, you should be able to login. Click on Lauch SAP Web IDE to lauch SAP Web IDE trial account.

SAPUI5 Development Environment Setup

This will open up the SAP Web Ide. Click on </> for development perspective. You will find an empty workspace as shown in image below. We will now create a project under this workspace.

sap web ide, sap web ide cockpit, sap web ide online, sap web ide link, sap hcp web ide, sap web ide cloud, sap web ide trial, sap web ide trial version, sap web ide for hana
SAP Web IDE workspace

Create your first SAPUI5 hello world example

Right-click on the workspace to select New > Project from Template. New SAPUI5 Application Template selection wizard will open up. This wizard helps in creating a base SAPUI5 application. Select SAPUI5 Application and click Next.

SAP UI5 Creating a Project in Web IDE, SAPUI5 initial app with WebIDE, Develop Hello world SAPUI5 program in SAP WebIDE, Beginning SAPUI5 app Development Using WEBIDE, Creating sapui5 application with an App Template in SAP Web IDE, create new SAPUI5 project in Web IDE
Creating sapui5 application with an App Template in SAP Web IDE

In the next screen, the wizard asks you to input Project Name and Namespace. Note that both the fields are mandatory. Provide a relevant project name and Namespace and click Next.

SAP UI5 Creating a Project in Web IDE, SAPUI5 initial app with WebIDE, Develop Hello world SAPUI5 program in SAP WebIDE, Beginning SAPUI5 app Development Using WEBIDE, Creating sapui5 application with an App Template in SAP Web IDE, create new SAPUI5 project in Web IDE
Provide Project Name and Namespace in SAP Web IDE

In the next screen, wizard displays View Type and View Name. Note that the wizard will create a View with name View1 and of type XML. Let it be as it is and click Next.

SAP UI5 Creating a Project in Web IDE, SAPUI5 initial app with WebIDE, Develop Hello world SAPUI5 program in SAP WebIDE, Beginning SAPUI5 app Development Using WEBIDE, Creating sapui5 application with an App Template in SAP Web IDE, create new SAPUI5 project in Web IDE
Provide View Type and View Name in SAP Web IDE

At the last screen, all you need to do is click finish and the wizard creates your first SAPUI5 application.
Run the application by clicking Run button in the header toolbar.

Congratulations.. you have successfully executed your first SAPUI5 hello world example application.

Connect to SAP Gateway Demo System ES5

Your SAPUI5 development environment setup will not be considered as complete, if it cannot access some OData service. You will need OData service to access data to display in SAPUI5 projects.

SAP provides ES5 demo system so that you can access real service data for SAPUI5 projects. Access to ES5 demo system is also available for free and in below paragraphs we demonstrate how to connect Demo System ES5 to SAP Web IDE.

You should create an account on the Gateway system. As you have already created an account in SAP Cloud Platform, you will use the same credentials for ES5 demo system. Click on https://register.sapdevcenter.com/SUPSignForms to create Gateway system account.
It pulls the User Id and other details from your SAP Cloud Platform. Click Register.

sap demo gateway system, sap es5 odata, sap es5 system, es5 login, es5 odata service, sap es5 registration, sap netweaver gateway system demo es5, create account in es5 gateway demo system
ES5 Demo System Registration

Once you click Register, it will show you a temporary password with which you can login to SAP Gateway demo system. Also, you will receive an email with login credentials similar to the image below. Use these credentials to log into ES5 demo system.

sap demo gateway system, sap es5 odata, sap es5 system, es5 login, es5 odata service, sap es5 registration, sap netweaver gateway system demo es5, create account in es5 gateway demo system
Registration confirmation email with Gateway system Username and Password

Click on https://sapes5.sapdevcenter.com/sap/bc/gui/sap/its/webgui for ES5 Gateway System. Login with username and password. At your first login, you will be prompted to change the initial password. Do as required and click continue to enter SAP Gateway demo system.

sap demo gateway system, sap es5 odata, sap es5 system, es5 login, es5 odata service, sap es5 registration, sap netweaver gateway system demo es5, create account in es5 gateway demo system
SAP Gateway Demo System

If you have got the above screen, it means that you are able to access the SAP Gateway Demo System.
Let’s test the access of an OData service provided by the Gateway system. Click on the URL https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/. If prompted for a username and password, provide the Gateway system username and password. You will see the metadata of the OData service.

sap demo gateway system, sap es5 odata, sap es5 system, es5 login, es5 odata service, sap es5 registration, sap netweaver gateway system demo es5, create account in es5 gateway demo system, OData sample service GWSAMPLE_BASIC,
OData sample service GWSAMPLE_BASIC

SAP Cloud Platform destination configuration

You have now access to Gateway demo system. In order to access data from this system inside Web IDE, we should configure the Gateway system in SAP Cloud Platform.

Log into SAP Cloud Platform. At the left side click Destination. Choose New Destination and fill in the details as given in below image. The username and password to be provided is your SAP Gateway system.

Add Additional Properties, these are important as it will enable the destination to be used in SAP Web IDE.

Field NameValue
WebIDEEnabledtrue
WebIDESystemgateway
WebIDEUsageodata_gen, odata_abap, bsp_execute_abap
sap-client002

Save your configuration.

sap web ide destination configuration, sap cloud platform destination service, creating destination in SAP Cloud platform, configuring destinations in SAP cloud platform account, creating a destination for the Northwind Odata Services, how to connect sap web ide to gateway system, sap cloud platform destinations
sap web ide destination configuration

Once saved, click the Check Connection button to test. You will receive successful message indicating connection is working.

sap cloud platform destination configuration check, sap web ide destination configuration, sap cloud platform destination service, creating destination in SAP Cloud platform, configuring destinations in SAP cloud platform account, creating a destination for the Northwind Odata Services, how to connect sap web ide to gateway system, sap cloud platform destinations
sap cloud platform destination configuration check

If you have worked up til this point, you have properly setup the SAPUI5 development environment.

SAP Web IDE Northwind OData Service Destination Configuration

Northwind OData service is a publicly available OData service, that holds the data of a fictions company Northwind. Configuring Northwind OData service in SAP Cloud Platform destination will be a useful step, as you will get access to a publicly available OData service to consume in your SAPUI5 application.

Log into SAP Cloud Platform trial account, and click Destination in left-hand side menu. Click New Destination. Fill in the details as shown in image below. Save and click Check Connection to see if the destination is configured correctly.

NameNorthwind
TypeHTTP
DescriptionNorthwind Odata service
URLhttps://services.odata.org/
Proxy TypeInternet
AuthenticationNoAuthentication
WebIDEEnabledtrue
WebIDESystemNorthwind_Data
WebIDEUsageodata_gen

Ensure that you check Use default JDK truststore.

sapui5 northwind odata service destination configuration in sap web ide
sapui5 northwind odata service destination configuration in sap web ide

Now you have completely setup the SAPUI5 development environment with access to SAP Web IDE and two OData services configured as destination. Thanks for reading.

SAPUI5 Tutorials