on 09-05-2019 7:12 PM
Hi Experts,
How can we pick multi header and multi Item from SAP UI5 in case of deep entry(mass approval). If header is only single record then it's easy to loop in and get item data and send in the payload format. How can we achieve in above said requirement.
1) In case of first Multi approve scenario :
Header(Fixed)
"EntityNameM":[{},
{},
{},
{}](Dynamic)
While creation Read header
2) In case of Team seconf Multi approve scenario :
Header (Dynamic due to multiple record)
"EntityNameL": [ {},
{},
{},
{}] (Dynamic)
Thanks and Regards,
RK
Hi ram mishra
You can make use of batch for this right?
In ui5 make sure you are using odata v2 model, which is batch enabled by default and call multiple times odata create method (which has deep data).
In the backend use chageset process to get all the data that you sent from the UI in one go.
https://blogs.sap.com/2018/05/06/batch-request-in-sap-gateway/
Thanks,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
maheshkumar.palavalli I have tried this. But the problem is each time I loop through the model, say for e.g 1 header has 2 sets of line items, second set of line items goes as a another record. It does not get appended to the original header like
It goes like
{ header 1 : value
lineitem1 : [
prop1 : value1,
prop2 : value2
]
},
{ header 1 : value
lineitem2 : [
prop1 : value1,
prop2 : value2
]
}
where as it must go like
{ header 1 : value
lineitem1 : [
{ prop1 : value1,
prop2 : value2
},
lineitem2 : [
{ prop1 : value1,
prop2 : value2
}
]
},
Thanks
Uday
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.