cancel
Showing results for 
Search instead for 
Did you mean: 

OData V4 on SAPUI5

Former Member
0 Kudos
1,037

I'm trying to use an OData V4 service with the neweste sapui5 library. I've seen in the API reference that it's still experimental, but at least for me it's not working at all.

I can't even consume the simple dummy service from odata.org.


sap.ui.model.odata.ODataModel("https://services.odata.org/V4/OData/OData.svc/", true, undefined, undefined, undefined, true, false, false);

All I'm getting is the exeption message: "Invalid metadata document" in the browser console.

In case I got it wrong and it's still not implemented at all, does someone know when it might will be released?

Thank you all for any information.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check it out, it seems like OData V4 finaly just got released


https://sapui5.netweaver.ondemand.com/sdk#docs/api/symbols/sap.ui.model.odata.v4.ODataModel.html

Answers (2)

Answers (2)

jensittel
Associate
Associate
0 Kudos

Hi Tim,

sap.ui.model.odata.ODataModel as well as sap.ui.model.odata.v2.ODataModel only support OData Version 2.0 services. We are currently developing a OpenUI5 / SAPUI5 model supporting OData Version 4.0 services. We will ship the UI5 OData V4 model with increasing feature scope with the upcoming UI5 releases. Due to its limited feature scope, we will not recommend to use the first of these releases of the model implementation for productive usage.

Regards

  Jens

Former Member
0 Kudos

Hi Jens and Chantele,

thank you both for replying. I'll wait for the next releases and as soon as it's implemented I'll answer and close this thread (due to completeness).


Regards, Tim

Former Member
0 Kudos

Hello Jens,

Do you have a roadmap with dates that you could let us know?

Thanks & Regards,

Robert.

Chantele
Active Participant
0 Kudos

Hi Tim,

Only odata 4.0 annotations are supported at the moment

OpenUI5 SDK - Demo Kit

Not sure when it will be fully supported though sorry.

Chantele