cancel
Showing results for 
Search instead for 
Did you mean: 

What does the XSODATA service return to the client after executing a custom exit on POST/UPDATE?

ericci
Active Contributor
0 Kudos

Hi everyone,

we have a SAPUI5 hybrid application connected to our HANA implementation via the SAP Mobile Services.

On out HANA system, we have an XSODATA that are exposing some HANA Views.

Those views have custom exits on DELETE/POST/UPDATE. After the custom exit, I assumed that XSODATA would re-do the READ on the same View to give back to the client the updated record with all the Join specified in the View.

I'm saying that because I'm comparing the JSON returned by the custom exit response to the one done accessing the view in read (with an HTTP GET)

It seems that the default behavior is not like that so my questions are:

  1. Are my assumptions correct? The XSODATA is not executing the READ on the view again?
  2. How can I specify to XSODATA that it must do it?

Best regards, Emanuele.

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

No, the view data will not be read when a POST/PUT/DELETE is done. You can also not configure that. You have to do GET request to get back the data.

Regards,
Florian

Answers (0)