by Jessica Morales, NIMBL
Over the past decade, the use of mobile devices in a person’s everyday life, has increased drastically. Many people own multiple devices such as: cellphones and tablets. As a result, the demand for mobile applications in the work environment has grown.
Companies that do not want to fall behind in technology are being forced to introduce mobile devices to their employees. SAP has recognized that mobile applications are becoming prominent in multiple industries, and they have updated their solution by allowing developers the ability to create Fiori mobile applications.
One of the first ways Fiori developers were able to create mobile applications was using WebIDE’s plugin called the Hybrid Application Toolkit or HAT, however, the newer way to accomplish this is by utilizing Hana Cloud Platform Mobile Service or HCPms. This does not require installation, as HAT did previously. It is no wonder why so many developers are using HCPms. This tutorial will show you step by step on how to enable HCPms for development.
In order to get mobile services working with the Hana Cloud Platform, you will need to enable it. Once it is enabled, WebIDE will know how to use HCPms.
Step 1: Browse to the Hana Cloud Platform Cockpit here
Step 2: Click on “Services” in the Content pane on the left
Step 3: Enable Mobile Services
Subscribe Mobile Services
Now that the Mobile Services are enabled, you will need to subscribe the mobile services to your Hana Cloud Platform account.
Step 4: Click on “Subscriptions” in the Content pane
Step 5: Click “New Subscriptions”
Step 6: Select Provider Account “sapmobile” and Application Name “hcpmsadmin”
Step 7: Confirm by clicking “Save”. You should see something similar to below:
Create and Assign Admin Role
Now that mobile services has been subscribed to your Hana Cloud Platform account, an admin role needs to be created. Once the admin role is created, you can assign the role to your SAP user id.
Step 8: Click on the link “hcpmsadmin” and select “Roles” in the Content pane
Step 9: Click “New Role”
Step 10: Type in the role name “HanaMobileAdmin” and confirm the dialog
Step 11: Click on “Assign” in the lower part of the screen and assign your user to the newly created role by providing your S-user ID in the dialog
Note: Make sure the HanaMobileAdmin role is selected in the role list. If all is done correctly it should look like this:
Create a WebIDE Destination
In order to allow communication between the Hana Cloud Platform Cockpit and mobile services, you will need to setup two destinations manually.
Step 12: Select “Destination” in the Content pane
Step 13: Create the two destinations below:
Assign Additional Roles
The last thing that you need to do is assign another administrator role to the mobile service.
Step 14: Click on “Services” in the Content pane
Step 15: In the row of HANA Cloud Platform Mobile Services, click “Configure Mobile Services”
Step 16: Click “Roles” in Content Pane
Step 17: Now select the role “Administrator” row in the list of roles.
Step 18: Click “Assign” in the lower part of the screen. Provide your S-User ID in the dialog and confirm by clicking “Assign”. It should look like this:
Step 19: Launch Mobile Services Cockpit by clicking “Go to Service”.
Note: You will be asked to authenticate using your S-User ID and password. If you are using Chrome it may say: XCSRF token is not available, further create, update and delete will fail. You can get around this by opening the link in incognito. If not try Firefox.
You should get this when done:
Due the increasing demand in incorporating mobile devices in an employee’s workflow, companies are investing in mobile application development. SAP recognizes that technology will only continue to evolve and has created ways for the Fiori developer to create mobile applications.
Originally the Hybrid Application Toolkit plugin was used in WebIDE as a solution, but the complicated installation had made setup frustrating for most developers. SAP has now updated their approach and has introduced HCPms into the mix. After finishing the tutorial, a developer should have the knowledge needed to enable HCPms for development of their own Fiori mobile applications.