cancel
Showing results for 
Search instead for 
Did you mean: 

Get _entity method getting called twice before update_entity method

former_member227510
Participant
0 Kudos

Hi,

Whenever I am calling oModel.update, get_entity method is getting called twice before the update entity,

Syntax:

oModel.update("/EntitySet('" + ID + "')", aData, null);

Why is this behaviour?

Thanks and Regards,

Gopa.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185414
Active Contributor
0 Kudos

The two times calling of get methods is the optimization technique followed by NetWeaver Gateway.

In the first call the $count query option is appended to OData call to determine whether any suitable record exists for the URL formed.

If the count is more than 0, then the subsequent call is made to fetch the actual data.

BR.

Answers (0)