cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - Maintain destinations in eclipse

chetan_mishra
Participant
0 Kudos

Hi,

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?

View Entire Topic
Bernard
Participant
0 Kudos

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?

chetan_mishra
Participant
0 Kudos

Hi barnslet,

Thanks for replying.I have recently started learning SAPUI5 by following the online blogs and videos. I am not deploying my apps as of now, but I wanted to understand how the app would work once it is deployed to either an on-premise system or an Cloud systems.

Currently I am using Web IDE as well as Eclipse from my practice scenario's, and not quite able to make my pick between the two.

What tool is used in an ideal implementation for SAPUI5 applications? Would a project/client have multiple web IDE environments corresponding to Dev/QA/PRD?

Bernard
Participant
0 Kudos

We use Web Ide and deploy from there. Best practice suggests using GIT and then engaging your GIT repository to deploy to your ABAP Repo using, say, Jenkins or any other capable CI tool.

You can use Eclipse - but then you have to raise all the infrastructure and do all the relevant installs onPrem to achieve what you get out the box with Web IDE in the cloud. (not sure where Eclipse is at with Layout Editor / data model config, ...)

When you deploy an app from Web IDE and you deploy to your ABAP Repo you would attach this to a request. This would then be used to transport the app through your different environments - your endpoints (oData CRUD activity for e.g.) should be unaffected by the journeying of your UI5 app through the environments. (You would journey your oData services separately and typically on your backend server using Solman or manual transports and then activate where necessary)

Hope this makes sense?

chetan_mishra
Participant
0 Kudos

Hi barnslet,

Thanks for clarifying, I, probably, have a better understanding now. I have worked on Pricing routines in SAP CRM, and there the routines were created in Java, and then the JAR package was deployed to SAP CRM and captured in a TR and then moved to higher environments. SAPUI5 apps would be deployed in a similar way.

However I am still puzzled about the connections between oData services, specially external or non-SAP oData services. How would the connections be managed? Would there be a specific file/configuration similar to RFC connections(T-Code:SM59) in ABAP.

Sorry for being so lame but I really cannot figure this out.

Bernard
Participant
0 Kudos

Hi chetan.mishra

Maintaining URLs that engage external or non-SAP endpoints (whether presented as oData endpoints or not) could be done using a variety of means. One option would be to specify an absolute path in your manifest.json or in a separate json file where you maintain connections to external services - this json file could load within an appropriate intialisation event within your application - you are very likely to encounter CORS issues unless these are explicity addressed - options exist - e.g. proxy servers like SAP Web Dispatacher)

.

chetan_mishra
Participant

Thanks barnslet, for answering my queries patiently.