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

How to bulk register multiple records via a custom Web API developed with RAP

MegumiInoue
Explorer
0 Likes
1,057

Hi Exparts,

We would like to register multiple records at once to an add-on table in S/4HANA via a custom Web API for OData V2 developed with RAP.
I am trying a method using a batch request.
Although I can register multiple records at once, the save sequence seems to run one record at a time.
We don't want to register all the records if an error occurs for some of the records, so is there a way to process multiple records internally at once?
The technical background is that we use the Web API for interface, so we send batch requests from Integration Suite via the OData adapter.
The custom Web API was developed using the RAP generator.
When we run the RAP generator, the objects required for OData V4 are generated, but we were unable to send batch requests successfully with OData V4, so we only added the V2 service binding.

Best Regards,
Megumi Inoue

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Likes

I think that depends on how you send your request

MegumiInoue
Explorer
0 Likes

Thank you for your comment.
I followed the blog below to send a batch request from Cloud Integration, but do you know any other suitable methods?

https://community.sap.com/t5/technology-blogs-by-sap/batch-operation-in-odata-v2-adapter-in-sap-clou...