on 02-01-2018 6:31 PM
Hi,
I'm having an issue working with $batch call for multiple entries...
As I already read in a lot of places, I redefined the CHANGESET_BEGIN and CHANGESET_END methods with an EXIT (or empty code).
In the UI5 app I have the following code:
for (var iRowIndex = 0; iRowIndex < aItems.length; iRowIndex++) {
// here I set oCreateIT9006Data values...
oModel.create(
sPath,
oCreateIT9006Data, {
success: function(oData, response) {},
error: function(oError) {}
}
);
}
If I only have 1 record, the $batch call is raising the success callback function and everything is working fine:
But if I have more than 1 record, the $batch call is raising the error callback function and the "500 Internal Server Error" message:
If I set a breakpoint on CHANGESET_BEGIN and CHANGESET_END methods, I see the 2 records are arriving there into the IT_OPERATION_INFO parameter:
Any idea about what's happening here? Before this method the /IWBEP/IF_MGW_CORE_SRV_RUNTIME-CHANGESET_BEGIN method is called... Do I need to make some changes there?
Thanks !!
Miguel Angel.
I finally followed the implementation on /IWBEP/CL_MGW_RT_SFLIGHT class and now it's working...
https://archive.sap.com/documents/docs/DOC-57113
But I really don't understand why I need to set CV_DEFER_MODE parameter and implement CHANGESET_PROCESS method... If not, the above error is raised always !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello.
Check transaction st22. Maybe you have dumps in backend system.
And try to redefine CHANGESET_PROCESS method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.