SAPUI5 Application CREATE, CHECK-OUT, CHECK-IN, DEPLOY, VERSION mgt etc…
Below points will be covered in post:
- Creating new SAPUI5 Project
- Deploy Application on SAP HANA Cloud Platform
- SAP HANA Cloud Platform Overview
- SAP HANA Cloud Platform Version
- SAP HANA Cloud Platform Roles
- Committing SAPUI5 Application changes to Cloud
- Version management of Application in SAP HANA Cloud Platform
Creating new SAPUI5 Project
Select type of Application you want to create.
Follow the screen and Application will be created as shown below.
New Application XMLUI5 is created.
Now we will add this SAPUI5 Project to Git. To do this we need to deploy our application to SAP HANA Cloud Platform.
Lets checkout the Git settings first.
Deploy SAPUI5 Application on HANA Cloud Platform.
Here you need to provide your SAPID or PID for Authentication and click on Login button.
SAP HANA Cloud Platform it automatically maintain Versions, each time you deploy an Application it creates a new Version number to identify the latest changes. It also provides ability to switch to specific version of deployed Application when ever required and Activate that specific Version.
In below screen shot we are deploying very first version 1.0.0 of SAPUI5 Application which we are creating.
Click on Deploy button.
If your Application is deployed successfully you will see below Popup and Green dots in your Application.
If you want to see hot your Application works on HANA Cloud, you can click on first link available in popup.
Once you click on first link it looks like below.
Three more files (highlighted below) will be added once all things are correctly configured in HANA Cloud Platform
Once your Application (XMLUI5) is configured in SAP HANA Cloud you can see it in Cloud Platform as below.
SAP HANA Cockpit can be accessed using below URL
Once you click on your deployed Application you will see below screen which contains below details
- Application Details
- Current Status of your application
- Current Active Version URL (you can access your application using this URL)
When you click on Version link on left side below screen will be opened
Versioning sections two main parts
- This section will contains all of your commits done in Application along with comments and Versions you are allowed here to activate any of the available versions.
- Each time you perform a Commit in your SAPUI5 project from WEBIDE Git, the same will be updated here. Currently we are having only one new Commit available with active version 1.0.0.
- Git Repository URl can be used to retrieve the repository Application contents or push changes using a Git utility.
Versions tab will show you the current Active as well as all other Inactive Versions available in HANA Cloud. You can change Active version any time as required by using Actions column Activate Button.
Roles tab is basically used in scenario when there are multiple developers working on same application (authenticate them) we create Roles and then we assign Developers in that Role. In our example we have created one Role called Developer and add Three developers in that Role.
These should be PID or SAPID of the Developers who will work. This mainly used when you try to Deploy or Commit any changes done in Application to SAP HANA Cloud.
Once we are done with creating Roles we are ready to Assign Developers to that Role. PID or SAPID is required to add Developers.
Any time you can Un-assign/Assign any User from/to List.
Changing files and updating (Committing changes) on SAP HANA Cloud Platform
Let us see how Application looks, go as shown below
Now let us make some changes to Title of our Application and make a Commit to SAP HANA Cloud.
Once you make changes to file the Green Dot will gets changes to *. This means you have checked out these files (Files are changed) and are no longer in sync with SAP HANA Cloud repository.
Once you are done with all your changes to a file you can again Checked-in the changes to SAP HANA Cloud.
Just Click Git Pane on right hand side. This will provide options to Check-In code as shown below
Choose the files which you want to Check-In by clicking on Stag checkbox individually.
It is suggested Click on Pull button before committing any changes.
Once you click on Pull button you will be asked for SAP ID/PID for Authentication as below, provide and click on OK button.
Now time to Commit the changes, select Stag checkbox put some Commit Description Comments and click on Commit and Push button.
Once Commit is successful you will see message on top right corner.
This means your changes are Committed in SAP HANA Cloud. The * will turn back to Green Dot in Application hierarchy.
You can see your Commits in History in SAP HANA Cloud as below.
After this Commit if you see in Versioning tab of SAP HANA Cloud Platform you still find the Old version which is active.
New Version can be Activate as shown below.
Click on Yes button to Activate.
Run Application again and changes will be reflected as below (Title updated)
Thanks to you for reading this post till end.
I have tried to provide details on each and every step you need to perform if you are working on SAP HANA Cloud platform, please suggest or comment if I missed any.
Please drop a comment or suggestion so I can update the document accordingly.
Please have a look to Cloud Connector configuration steps: