cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple sales orders creation using CREATE_DEEP_ENTITY method in one time activity

Former Member
0 Kudos

Hi Everyone,

I have requirement to create Create multiple sales orders and corresponding line item on only one time Button click

Can anybody suggest that is it possible to create multiple sales-orders by calling CREATE_DEEP_ENTITY method only once ,instead of calling multiple times for each sales order individually.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185511
Active Participant
0 Kudos

i think you can implement batch mechanism for this case but i would suggest to create a string column in your structure (lets say col name is DATA)

Get ITEM-DETAIL as JSON content in UI5 app to a variable.

1- JSON.stringify your JSON content and set the value to your DATA column.

2- After SAVE method, you will have all content as JSON in your abap structure inside the DATA column

3-Deserialize JSON content with same item-detail structure (including same column names) type in ABAP with standard UI5 JSON parser class.

4- Now you have an ABAP structure with item-detail populated already.