Hi experts,
I am working on an SAP HANA SPS10 (1.00.102.04) system to create an xsodata service on top of a HANA CDS table. This is working fine:
CDS definition:
type Name : String(80);
entity Address {
key id : Integer;
street : Name;
number : Integer;
zipCode : String(30);
city : Name;
countryCode : String(2);
};
xsodata:
service {
"Address" as "Address";
}
I am consuming the OData service through an SAPUI5 OData model:
var oModel = new sap.ui.model.odata.ODataModel("test.xsodata");
Next, I am updating the table through a PUT request, which is also working fine:
oModel.update("/Address(1)", {id:1,street:"test"},number:1,zipCode:"test",city:"test",countryCode:"NL");
Finally, I tried to trigger a MERGE request to do a differential update on the table:
oModel.update("/Address(1)", {street:"test2"}, {merge:true});
To my surprise this worked without issues, as in earlier revisions this actually returned an error. However, I cannot find anything in the SAP HANA documentation / release notes about this feature? Can you let me know if MERGE is officially supported by SAP?
Thanks,
Matthijs