Introduction

HCPms is the cloud version of SAP Mobile Platform(SMP) and it’s now available for free testing at the following URL. You need to register and to apply the steps reported in the blog listed among the prerequisites in order to enable the HCPms environment for your user. Once you have registered to this service you need to configure it in some way so that you can start consuming any OData service it provides.

In another blog, How to on-board user with HANA Cloud Platform mobile services it’s already explained how to configure HCPms so that it can connect to the Northwind free service: in this guide I will show you how you can do the same with an ABAP system on premise. We will assume that our backend system is named GM6 and that we want to consume the service SRA010_TIMESHEET_APPROVAL_SRV. Of course this is just an example and you can choose whatever ABAP system and service you want.

Prerequisites:

Let’s get started!

1) Open your SAP HANA Cloud Connector and configure a row in the Access Control menu. The Internal Host parameter is the backend hostname

/wp-content/uploads/2015/02/2015_01_29_15_15_15_636368.png

2) Open the SAP HANA Cloud cockpit and create a destination for the server defined in the HANA Cloud Connector

/wp-content/uploads/2015/02/2015_01_29_15_18_10_636449.png

3) Click on the Applications tile and then on the “+” sign to create a new application

/wp-content/uploads/2015/02/01_636880.png

4) Create a new application with the following settings:

Parameter Value
Application ID com.ts.apv
Version 1.0
Name TSApproval
Type Hybrid
Description Timesheet Approval
Vendor SAP
Security Configuration None

/wp-content/uploads/2015/02/02_636899.png

5) Switch to the Backend tab

/wp-content/uploads/2015/02/03_636900.png

6) Configure the backend in the following way and click on Save

Parameter
Value
Backend URL http://gm6.virtual:8010/sap/opu/odata/sap/SRA010_TIMESHEET_APPROVAL_SRV/
Authentication Type No Authentication
Maximum Connections 500
Certificate Alias <keep it blank>
Rewrite Mode Rewrite URL on HANA Mobile Server
Relative Paths <keep it blank>
Proxy Type On Premise

/wp-content/uploads/2015/02/04_636901.png

7) Going back to the Home you will see that there is now a new application in your cockpit. If you click on the Applications tile you will find the new application and you can ping it in order to check if the connection works fine

/wp-content/uploads/2015/02/05_636913.png

8) At this point you need just to create a new application in SAP Web IDE which will consume this data source. Open SAP Web IDE and from Tools –> External Plugins enable the “com.sap.webide.hybrid” plugin

/wp-content/uploads/2015/02/07_636949.png

9) Click on OK and then refresh your SAP Web IDE browser page

10) Choose File –> New –> Project from Template

11) Choose the template SAPUI5 Master Detail Kapsel Application

12) Enter the name for your application (i.e. TSApproval)

13) From the Service Catalog dropdown list choose the GM6 system we have previously configured. Enter your credentials if required

14) Select the service SRA010_TIMESHEET_APPROVAL_SRV from the list of the available services and click on Next


15) Enter the following information and click on Next

/wp-content/uploads/2015/02/06_636948.png

16) Click on Finish


17) [Optional] You can select the index.html file in the new application and run it in the desktop to check that all is working fine

18) Select the TSApproval application in the SAP Web IDE, right click on it and choose Project Settings –> Device Configuration. Enter the following information

Parameter
Value
App Name TSApproval
App ID com.ts.apv
Description Timesheet Approval
Version 1.0.0
Kapsel Logon Manager Enabled
Host hcpms-<your user>trial.hanatrial.ondemand.com
Port 443

/wp-content/uploads/2015/02/c01_647889.png

19) Select the TSApproval application in the SAP Web IDE, right click on it and choose Deploy –> Deploy to local Hybrid Toolkit


20) Once the deployment is finished you can right click on the index.html file in the application and choose Run –> Run on –> iOS (or Android) Simulator (or Device)

21) Once the application on the emulator (device) is started, configure the Kapsel Logon by providing the credentials for the back end system and setting the Secure switch to ON, then click on Register. On the next screen create a passcode or disable it and click on Submit

/wp-content/uploads/2015/02/09_636955.png

22) You will get your application up and running

/wp-content/uploads/2015/02/10_637056.png

That’s all folks!

Regards,

Simmaco

To report this post you need to login first.

13 Comments

You must be Logged on to comment or reply to a post.

    1. Dhani Sebastian

      Hi Marc,

      Did you try with ABAP system or Gateway? I have a service which is not published in Gateway. I have done all the steps as in this blog. But while pinging the application in mobile server, I am getting 404-Not Found error.

      Can you help me?

      Regards,

      Dhani

      (0) 
    1. SIMMACO FERRIERO Post author

      Hi Dhani,

      you said you have configured your CC and created a destination in the cockpit. Just to try to understand where is the problem, could you please confirm to me that whenever you try to create a new project (i.e. from the SAP Fiori Master Detail Template) you are able to get data from the ABAP service? If you are not able to get data there there is just a problem with this configuration.

      Regards,

      Simmaco

      (0) 
      1. Dhani Sebastian

        Hi Simmaco,

        I created a new project from SAP Fiori Master Detail Template. But I am getting the following error while trying to access the Services.

        “Unable to access the selected system. Check your credentials and try again. “

        Data_Connection_Error.png

        I have attached the log from my CC when I try to get the service from the ABAP system

        HCC_Log.png

        (0) 
        1. SIMMACO FERRIERO Post author

          Dhani,

          it seems that your Cloud Connector (or maybe your backend system) is not properly configured. You can contact me privately and maybe we can schedule a SAP Connect to give a closer look to your problem.

          Regards,

          Simmaco

          (0) 
          1. Dhani Sebastian

            Hi Simmaco,

            I am not able to send you any private messages as SCN rule “Cannot send direct messages to users you’re not connected to. Also I cannot share my email publicaly here(as it is also a violation of SCN rules)

            Do I have to do any configuration in my backend system so as to get data from ABAP service?


            Regards,

            Dhani

            (0) 
            1. Juan SantoTomas

              Hi Dhani,

              I’m new in ABAP system and I’d like to connect to on-premise.
              Have you installed anything in the backend system? What I need?

              Did you managed to get data form your ABAP system?

              Regards,
              Juan.

              (0) 
  1. Isaac Tabach

    Hello Simmaco,

     

    In the screen of the login of Kapsel does not appear the option of Registry you could indicate to us and we tried to enter to ES4 but does not recognize the password with which we configured the backend in HCPms, in advance we thank your support.

    (0) 
  2. Dominik Steinrücken

    Hi Simmaco,

    I used exactly the same settings but the andriod app doesn’t show any data. The UI5 works fine on SAP Cloud Platform, but I have no idea what went wrong while my configuration. Is there any tool to find connections problems, e.g. missing TRUST settings ?

     

    Best regards
    Dominik

    (0) 

Leave a Reply