on 01-24-2017 2:18 PM
Hi,
We know that HTTP is stateless protocol and so is ODATA(since it is on top of HTTP).
But in ODATA batch operation we can send multiple http operation(get, put) in a single batch.
As mentioned here https://help.sap.com/saphelp_nw74/helpdata/en/94/a126519eff236ee10000000a445394/content.htm gateway server process these operation in CHANGESET_PROCESS method and call getEntitySet() for get operation and UpdateEntitySet() call for update operation.
Let us consider a batch call( with one get and one update in a single batch). My requirement is, can we use result set returned by getEntitySet() in UpdateEntitySet().
I have not done this but I would suggest you to try this.
Create an attribute in the DPC_EXT class to store the query results, and when you do the update, try referencing that attribute. If the entire http request is processed in single SAP session and if the runtime re uses the DPC instance, then this would work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Depending on your OData version, the Requests within a BATCH request may not be processed in the given order. They could be processed asynchronously as well. Do check the documentation ODATA Version 2.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.