cancel
Showing results for 
Search instead for 
Did you mean: 

Single Call for Backend in case of read data using $batch

Former Member
0 Kudos

Hi,

How to create single call to backend system for multiple batch request in gateway.

My RFC having Internal table as importing parameter.

Each time my backend system is called with single line of data.

My Batch Request is


--batch Content-Type: application/http Content-Transfer-Encoding: binary

GET MM_PUSH_DATASet?$filter=(Uname+eq+'KRISH')  HTTP/1.1


--batch Content-Type: application/http Content-Transfer-Encoding: binary

GET MM_PUSH_DATASet?$filter=(Uname+eq+'ABAP_TEST')  HTTP/1.1

--batch--

Kindly suggest solution to prevent multiple call to backend.

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Kishan,

That is how BATCH works for now. It will call 2 times if there are 2 input values.

However in GW SP 09, you can send all the values as part of single ChangeSet so that in back-end you can process all the values in one go.

After processing you will get all the responses in a single payload containing separate response for each operation.

Have a look at Performance Improvements in BATCH ( Change Set at once Defer Mode ) section and also the implementation details ( Technical Details ) described as well ->

Details about some new features in SAP Gateway 2.0 SP09

/IWBEP/IF_MGW_APPL_SRV_RUNTIME - SAP NetWeaver Gateway - SAP Library

Regards,

Ashwin

Former Member
0 Kudos

Hello Ashwin, I have gone trough such documents earlier and having conclusion that CHANGESET_PROCESS is only used in case of Create, Update and Delete with case of atomicity. In case of read, its not working. Can you share the example of multiple read using changeset?

Regards Kishan

Answers (0)