Skip to Content
avatar image
Former Member

Fiori mobile app - how to connect to a data service using HCPms

Hi experts!

I have started to learn how to develop Fiori Apps and recently I'm trying to understand how to create Android apps out of html5 fiori apps.

I have create a SAP Fiori HTML5 app and now I want to mobilize it. Right now I am able to compile my project to an APK file. I am able to install and run the application on my Android device but it cannot access my back end data server that is configured on HCPms.

Here are some details of my dev environment and some steps:

- on my local machine I have Kapsel SDK and HAT up and running. On web IDE I am able to deploy my app to my local HAT and I am also able to run the application on my local Android Emulator.

- I have create an application on HCPms and configured the back end with the correct URL to access my data. On HCPms I can ping this back end connection successfully.

- After installing the APK on my Android device I am able to login using the kapsel-loggon-plugin and access my Fiori app.

- I have also deployed the app to HCP and tested the active version on my web browser and everything is working fine

- After debugging, I found out that the Android app has no information about the host name (that is configured on HCPms) and so it is assuming the path to the services to be local.

I would expect requests to be made against something like "" but instead it's trying to get the data from "/path/to/service/SERVICE_1".

- In my manifest.json file I have defined the path to be concatenated to my host name ("/path/to/service"). If I change this to be the full URL ("") and compile the APK again, I can access my data services.

Why is the mobile app not using the back end URL defined on the HCPms application configurations has the host name where the path to the services should be concatenated?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 06, 2017 at 08:18 PM

    If you created an app in hcpms with the id to connect to

    the mobile app would use


    to get the Products entities. It may be helpful for you to refer to



    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded