cancel
Showing results for 
Search instead for 
Did you mean: 

how to send the data for Multiple sales orders creation along with the multiple items.

S0024873964
Explorer
0 Kudos

Hi Experts,

I have one strange requirement in which I have to design a screen with two tables.

One table for Multiple headers and another (in next view) with the corresponding items.

I have to send the whole data so that the records can be created in the back-end for a single request.

If any alternate way is there, please let me know.

So in this case, how do I have to write the logic?

mmmsaldua
Explorer
0 Kudos

Hi Lakshmareddy.

Where you able to find the solution? I'm also facing the same requirement to create multiple sales orders.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
S0024873964
Explorer
0 Kudos

Thanks for your quick response Jun Wu.

I have already implemented the logic in the Create_deep_entity method. But it gets triggered for single request.

Now my problem is How do I write the logic in the front-end to trigger that method for multiple times in a single request.

Simply, in which way I have to send the data from the front-end..?

Even I tried the "FOR" loop.

junwu
Active Contributor
0 Kudos

do u know batch?

not sure if batch support this

Former Member
0 Kudos

If you are using v2 oData model it should support batch by default and oModel.create() called in a loop should trigger changeset_begin in the gateway.