cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing OData-Service/Netweaver GW-Service into UI5-App

Former Member
0 Kudos

Hello Experts,

I have installed ABAP Development tools and SAPUI5 ABAP Repository Team Provider plugin in Eclipse IDE Kepler .

I have shared my SAPUI5 project in back end SAP system. BSP application and service gets created in SICF Transaction path /sap/bc/ui5_ui5/sap/zui5_odata.

I can easily deploy and run SAPUI5 application on ABAP server.

But when i am trying to access data through SAP Odata, it is neither showing data nor giving an error in SAP.

I have developed one model in SAP though SEGW (SAP Netweaver Gateway Service Builder) Transaction.

In SAP Net weaver Gateway Client, it is showing SAP table data in JSON format. Same Data model i have used in SAPUI5 Project but data is not being fetched.

Help me guys.

Accepted Solutions (1)

Accepted Solutions (1)

kai2015
Contributor
0 Kudos

Hi Harshal,

please show your code how you receive the data in your app.

kind regards,

Kai

Former Member
0 Kudos
kai2015
Contributor
0 Kudos

Hi Harshal,

is your oModel at beginning empty? I am missing the domain-Url in your string...

var oModel = new sap.ui.model.odata.ODataModel(serviceUrl + "/sap/opu/odata/...", true);

The serviceUrl can link to your proxy or directly to your server.

Hope it helps!

kind regards,

Kai

Former Member
0 Kudos

I have tried with that also but still it is showing no data.

Warm Regards,

Harshal Patel

kai2015
Contributor
0 Kudos

In your chrome webconsole on network tab, there you should see the request of your oDataModel.

Click on it. Does it show data? Or is it red => Error ?

kai2015
Contributor
0 Kudos

Oh there is a typing mistake ... your servicename is "ZUI5_PORTEL_SRV". But in your app-code you write "ZUI5_PORTAL_SRV".

Former Member
0 Kudos

Hey i am really really thankful to you. Its my mistake.

Everything is working correctly now.

Answers (0)