Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

How to properly consume a C4C OData service?

$
0
0

Dear community,

 

after spending a couple of weeks on that issue, I am hoping to find help here. I am trying to write an HCP-App that connects to an C4C system via OData. It needs to be an read & write scenario which makes it a little bit more difficult.

 

What I did so far:

 

  1. Create a destination
  2. Create an application from a Master/Detail template
  3. Adjust the views
  4. Write a new function that triggers a create on the model

 

I figured out that the C4C system cannot deal with the sap.ui.model.odata.v2.ODataModel because of the $batch calls it triggers. I tried using this.getModel().setUseBatch(false); in the Component.js, however, this results in a HTTP error 500 from the C4C system. Using sap.ui.model.odata.ODataModel, on the other hand, results in simple calls like this.getOwnerComponent().getModel().metadataLoaded() throwing an error, because the metadataLoaded() function is not implemented in the v1 model.

 

At this point, I am stuck. I would appreciate any help on the incident.

 

All the best,

Florian


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>