Hi Experts,
I am developing UI5 application in two different landscapes(for two different companies). In both the cases, I am using apparently the same code as shown below for submitting batch operation:
oModel = new sap.ui.model.odata.ODataModel(serviceUrlCPA, true, "user1", "password1!"); batchChanges.push( oModel.createBatchOperation( "/cso_creatsoSet?$filter=Amount+eq+" + CSOMaterialTableData[i].amount.split(',').join('') + "m+and+Ordtype+eq+'" + ordtype + "'+and+Plant+eq+'" + plant + "'+and+Customersold+eq+'" + customer + "'+and+Matnr+eq+'" + CSOMaterialTableData[i].material + "'+and+Menge+eq+" + CSOMaterialTableData[i].orderQty + "m+and+MengeEx+eq+" + CSOMaterialTableData[i].orderQtyB + "m+and+UserName+eq+'" + sessionStorage.uName + "'+and+Linenumber+eq+'" + (i + 1) + "'+and+Newtranx+eq+'" + newTranx + "'+and+Lastentry+eq+'" + lastEntry + "'", "GET") ); newTranx = ""; lastEntry = ""; } oModel.addBatchReadOperations(batchChanges); oModel.setUseBatch(true); busyDialog.open(); oModel.submitBatch(function(data, response) { oModel.refresh(); }
But the problem is :
* In one system, my batch calls are submitted sequentially. I.e., one after anohter. The second request is made only after the first request has returned something.
* In another system, my batch calls are submitted as a lot. I.e., if my call has three requests, I can see three sessions are opened simultaneously if I had set External Breakpoints.
Do I need to change settings in the backend? I am using embedded architecture in both the cases.
Thank you.
Seyed Ismail.