I am using SAP HANA xsodata service to create an ODATA service on a HANA table, which is working fine.
Updating the model with update parameter on sap.ui.model.odata.ODataModel works fine
Code:
oModel.update(sUrl, oEntry, {
success : //do something ,
error : //do something
});
Now I want to use MERGE in place of PUT while Updating, following the documentation
My code:
oModel.update(sUrl, oEntry, {
merge: true,
success : //do something ,
error : //do something
});
It's throwing an error as only Get, Post, Put and Delete is supported.
So, my question is, whether XSODATA service doesn't support MERGE?
If it supports MERGE, what is wrong with my code?
Error - The following problem occurred: HTTP request failed405,Method Not Allowed,{ "error": { "code": "", "message": { "lang": "en-US", "value": "Invalid HTTP method. Only GET, POST, PUT, DEL methods are allowed."}}}