cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 on eclipse

Former Member
0 Kudos

Hi

We are just starting to experiment with SAPUI5.

To do this we have installed Gateway Services

along with sap fiori apps on our R3 application server.

I can also see the applications running on my IE11

browser.

From what I understand to extract data from R3, I

need to use OData DEvelopment ->Integration Gateway

plugin in Eclipse.  I also installed this plugin.

Now, to connect to the integration gateway

what URL do I need to use?

Do I have to install SMP3 separately?

Can you tell me the components I have to

instation to get a SAPUI5 with ODATA

services up and runninng?

By the way, on a local computer where

my eclipse is installed, I also installed

Tomcat. Now if I deploy a SAPUI5 Application

(without consuming ODATA services) onto

this web server everything runs smoothly.

Regards

Yuval

Tags edited by: Jitendra Kansal (Moderator)

Accepted Solutions (1)

Accepted Solutions (1)

Virinchy
Active Contributor
0 Kudos

HI Yuval Peery,

If your requirement is to develop mobile apps from R/3 systems , use SAP Gateway . (formerly SAP Netweaver Gateway) . SAP gateway helps us to generate OData services from SAP Backend systems. Few Components are to be installed in ERP systems (or) seperate Netweaver systems to setup Gateway. The components to setup gateway are listed here

Integration Gateway is specific to SAP Mobile Platform to generate OData services from NON SAP backend sources.

Do I have to install SMP3 separately?

Yes , SMP 3 .0 is to be seperately installed to use Integration Gateway.


Once OData services are developed from Non SAP backends using IG , the services can be read from


http://smp3server:8080/gateway/odata/sap/servicename;v=1

Also , please look at the Integration Gateway section here for few guides to develop OData from different NON SAP data sources.


Can you tell me the components I have to instation to get a SAPUI5 with ODATA services up and runninng?

Install a UI5 plugin either in Eclipse , or use the libraries at

https://sapui5.hana.ondemand.com/resources/sap-ui-core.js

Regards

Virinchy

Former Member
0 Kudos

Hi

Thank you for your reply.

All I want right now is to create an HTML page using SAPUI5

while consuming odata from R3.For instance, flight details .

I do not use non-sap data sources.

From what I understand there is not need to use a seperate SMP3 server.

but it sure helps with your development.

Is this http://smp3server:8080/gateway/odata/sap/servicename;v=1

the URL I have to provide In eclipse Integration Gateway ?

Is it possible to connect directly to R3 without using this smp3 server?

Thank you very much for your help here

regards

yuval

Virinchy
Active Contributor
0 Kudos

Yuval ,

Yes, IG helps to develop OData from Non SAP back ends.

If your requirement is to consume OData services from SAP Systems , SAP Gateway should pitch in .There is a demo Gateway system by SAP which exposes OData services , to develop sample apps and Flight details is one of them.

This blog helps to consume the OData services in SAP UI5.

SMP provides very unique capabilities like Offline caching , App Life cycle management , Push Notifications etc, but it all depends on the requirements of the client.


Is this http://smp3server:8080/gateway/odata/sap/servicename;v=1

the URL I have to provide In eclipse Integration Gateway ?

The OData service from IG can be accessed with this URL.

Regards

Virinchy

Former Member
0 Kudos

Hi Virinchy

I have watched the blog and saw this line in the code

var oModel = new sap.ui.model.odata.ODataModel(  

                              "http://gw.esworkplace.sap.com/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2",

                                                  false,

                                                  "GW@ESW",

                                                  "ESW4GW");

I understand that this is the url of the odata service within sap server.

I now also understand that this is the URL I have to provide on the Integration Gateway URL in eclipse.

If I use SMP3 server, I must use the path to the service name that is mapped to SAP R3.

Am I right?

Regards

Yuval

Can you also tell me how I find the URL of the Integration Gateway?

If I want to put my application on SAP Portal, I understand I have to create a HTML iview

and include this code in it. Am I right?

Virinchy
Active Contributor
0 Kudos

Yuval,



var oModel = new sap.ui.model.odata.ODataModel(  

                             "http://gw.esworkplace.sap.com/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2",

                                                  false,

                                                  "GW@ESW",

                                                  "ESW4GW");


I understand that this is the url of the odata service within sap server.

This URL is being referred in UI5 development , but not in Integration Gateway .

Integration Gateway comes into action , if we want to connect to non sap data sources, which is nt your case. The plugin of Integration gateway installed in eclipse and the component of Integration gateway in SMP 3.0 is not needed , since to connect to SAP backend only.

Look at this picture for the different options to develop mobile apps in UI5.

Regards

Virinchy

bjoernw
Participant
0 Kudos

Hi Virinchy,

thanks for your reply. You are correct in your explanation, however it sounded a bit like the Integration Gateway can only handle 3rd party data sources. It can do much more:

The Integration Gateway in SMP3 can handle SAP Gateway data sources as well as non-SAP data sources (SOAP, JDBC, JPA, REST). You can also use the Integration Gatway to mash up the different data sources and to create one uniform OData service that is then exposed to the outside world.

Kind regards

Björn

Virinchy
Active Contributor
0 Kudos

Hi Bjoern ,

Thanks for your reply. My assumption in this discussion was a single data source to consume in the UI5 application.

Integration Gateway can mash up different data sources services into single OData service (both SAP and NON SAP) as in the below diagram - modified.

Regards

Virinchy

Former Member
0 Kudos

Hi All

Thank you for your replies.

what I did was :

var Omodel = new sap.ui.model.odata.ODataModel (

"Http://myserver:port/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2,

false, user, pass);

oModel.read("/FlightCollection", null, null, true, fSuccess, fError);

oTable.setModel(oModel);

oTable.bindRows("/FlightCollection");

And this brought in the data into my table.

regards

Yuval

0 Kudos

Please mark this Discussion with a Correct Answer and Helpful Answer where appropriate.  See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why   Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.

Regards, Mike
SAP Customer Experience Group - CEG

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Hi Yuval,

Here are my two cents,

If your requirement is to get an Odata service to create a simple sapui5 app you can request for a Gateway trial, It has sample Odata services to test.

Or if your requirement is to expose Odata service from your backend you have two options:

  1. Use SAP Gateway - it's free for SAP business suite customers. It supports only SAP, ie you can't expose Odata from a non-SAP data-sources like JDBC or SOAP.
  2. Use Integration Gateway (IG) - It comes with SMP 3, ie you need to install SMP 3 to use it. It converts non-Odata protocols to Odata that can be consumed in your sapui5 app.

You can find many examples in SCN on how to create Odata service using IG.

Regards, Midhun

SAP Customer Experience Group - CEG