Skip to Content
avatar image
Former Member

Unable to post data through ODATA service from UI5 applicaiton

Hello Experts,

We are trying to post data for a device ID in MMS - configured as Bi-Directional. When we are try posting the data using the following format in Postman data gets posted and we can see the same in MMS cockpit table created for the Device.


HTTP Code in Postman




Content-Type: application/json

Authorization: Bearer 3ab50808a7c5854447877816cb357e5

Cache-Control: no-cache

Postman-Token: 0d522171-3284-b86d-f65a-fda2a9d2ece8



But the same doesn't happen when we try to do the posting from our UI5 Application. Following the spinet from UI5,

var odat = {"mode":"sync",

var oModel = new sap.ui.model.odata.v2.ODataModel("/destinations/iotmms/");

oModel.setHeaders({"Authorization" : "Bearer 3ab50808a7c5854447877816cb357e5","Content-Type" : "application/json"});

Can you help us with the issue in the UI5 Code ?

Service URL :

Thanks & Regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 29, 2016 at 12:44 AM

    what's the error message?

    Add comment
    10|10000 characters needed characters exceeded