on 04-10-2017 10:06 AM
Hello guys!
I have a problem with batch input. I use SAP Gateway with Odata services, and this I would like send to ERP one request to record rows. I sent batch input. And operation created execute several time. IWBEP/IF_MGW_CORE_SRV_RUNTIME~CHANGESET_BEGIN execute several time. It is bad. I would like sent to table and create one request for create.
Please, give me advice how I can do one request.
sap.ui.model.odata.ODataModel is obsolete. You should use sap.ui.model.odata.v2.ODataModel more info here.
this.getModel().create("/EntitySet", entity, {
success: function(oData) {
//Success handler
},
error: function(oError) {
//Error handler
}
});
If you call it in a loop then it will send it all in one batch request and should trigger CHANGESET_BEGIN only once.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using v2 oData model? Is the batch mode set to true?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.