cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP Version 8 Update: Issue with $batch Function Call Responses

kevin_balboni1
Participant
1,149

Dear community,

We are currently in the process of updating the CAP (Cloud Application Programming) version in our product. During this transition to version 8, we have encountered an issue regarding the handling of $batch calls.

In our frontend implementation, we have two function calls that are executed consecutively. These calls are subsequently grouped into a single $batch request by SAPUI5. However, since the CAP update, we have observed that the results being returned from these functions are incorrect. Specifically:

  • The function “takeAuthors”, which is intended to return a list of authors, is instead returning the count of books.
  • Conversely, the function “booksCount”, which is supposed to return the book count, is incorrectly returning the list of authors.

CallCallResponseResponse

I put a small timeout in a function to simulate processing some data, otherwise the anomaly does not occur.

The only reference I found in the CAP documentation is on the following page:

Noteworthy Changes 

To further illustrate the problem, I have created a GitHub repository containing a demonstration of the anomaly we are experiencing.

You can access it here: GitHub Repository - Test_CAP .

Any help would be very much appreciated

Thank you!
Kevin

Accepted Solutions (0)

Answers (0)