Skip to Content
avatar image
Former Member

SAPUI5 - Maintain destinations in eclipse


I have recently started with SAPUI5, and have been following various Blogs and tutorials. I am using Web IDE as well as Eclipse. I have a few queries:

1. We maintain Destinations in the HCP Cockpit, and then use these destinations for oData services in the web IDE. How are the Destinations maintained for the different landscapes(Dev --> QA --> PRD), so that the SAPUI5 app(s) connect to the right environment?

2. How can we maintain destinations in Eclipse?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 21, 2018 at 10:12 AM

    Are you deploying your cloud-developed app to your on-Prem ABAP Server?

    Destinations in SAP Cloud are there to abstract the wiring up of URLs away from the code so that you can chop and change by config in SAP Cloud without adjusting your code.

    When developing in the cloud you would be able to access the services on your onPrem ABAP server (assuming you have Cloud Connector installed).

    The implication is that there should be no need to make any changes to your SAPUI5 app once you deploy it to your onPrem server.

    Destinations does not apply within the context of Eclipse for onPrem systems. Destinations is a SAP Cloud concept used for wiring up and endpoints (SAP or non-SAP) to SAPUI5 (using SAP Web Ide) as well as other SAP Cloud Services

    You may be more interested in configuring Data Sources in your manifest.json?

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21, 2018 at 07:05 AM


    1. Destination configuration in WebIDE is only for development purposes. After you deploy your application to your DEV system, since the paths you use in the OData queries will be relative paths like "/sap/opu/opdata/....", your app will use the paths on the same server that it is running. Then, when you transport your application to QA and PROD systems using the standard transport management tools of SAP, the app will also use the services on QA and PROD systems. Make sure to have relative paths to your OData service in your manifest.json file.

    2. If you use Eclipse or other development tools, you have to handle your backend connections yourself during the development process. However, it is recommended that to use WebIDE instead of Eclipse if you don't have specific reasons.

    Add comment
    10|10000 characters needed characters exceeded

    • You are using public OData test service and even if you deploy your app to the test, qa or production systems you have to handle your connection in a different way. If you want to use a service running on external system, you need to configure your destination with web dispatcher or reverse proxy.

      In any case, you don't need to use the path /destination in your configuration files. Your current configuration will not work if you move your app out of the web ide. It will not recognize /destination path. However, if you make your configuration like:

      manifest.json : /V2/Northwind/Northwind.svc/

      neo-app.json : /V2/Northwind

      it will work both on web-ide or outside (assuming you have the web dispatcher configuration for