cancel
Showing results for 
Search instead for 
Did you mean: 

ODATA POST method with multiple record

Former Member
0 Kudos

Hi All,

How to update multiple records in a POST method ?

I have an internal table coming from UI5 , I need to update this table using the POST method via ODATA .

Please provide me direction or solution to update multiple records using POST method via ODATA.

P.S.

I am creating an ODATA service for HR Renewals , and I need to update the form details using the FM HRASR_PROCESS_EXECUTE in ODATA service.

Thanks in advance .

Chandra.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184867
Active Contributor
0 Kudos

You need to use batch operation for such cases. Here is a document on Batch using Gateway

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40546820-3ea7-2f10-dfab-be373c0da...

Here is the UI5 snippet to achieve batch

Answers (1)

Answers (1)

kammaje_cis
Active Contributor
0 Kudos

Atanu is right when you want to update multiple rows into the table.

But if all you need to do is update the process container of one single process, then may not require multiple record update. At the Gateway level, it can be a flat structure, thus you POST only one record to the gateway service, and within the gateway service's DPC_EXT class, you convert this flat structure into Process Container table and call the FM.