cancel
Showing results for 
Search instead for 
Did you mean: 

oData only get Changes in UPDATE

Former Member
0 Kudos

Hi,

i am Using oData in an SAP UI5-Application and when i make an "submitChanges()" in SAP UI5 i always get the whole entity-data.

Is there an way to determine the changes that were made on the entity?

so it is easier to create an update-process on the backend and make validations for the values.

thank you,

best regards,

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I found something in the API:

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

but onDemand is on version 1.32.7 ...

in our Version (1.28.23 ) it says:

Submits the collected changes which were collected by the setProperty method. A MERGE request will be triggered to only update the changed properties. If a URI with a $expand System Query Option was used then the expand entries will be removed from the collected changes. Changes to this entries should be done on the entry itself. So no deep updates are supported.

But it seems to not send a merge... it seems to send a put!

any idea or help?

best regards,