on 12-23-2014 6:08 AM
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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?
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
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
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
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
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:
You can find many examples in SCN on how to create Odata service using IG.
Regards, Midhun
SAP Customer Experience Group - CEG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.