SAPUI5-更新方法上的网关错误

时间:2018-08-02 15:30:20

标签: sapui5

我似乎无法在SAPUI5中使用更新方法。

这里是例子:

oModel.update("/JobOfflineSet('" + self.jobId + "')", oEntry, {
        success: function () {
        var oRouter = sap.ui.core.UIComponent.getRouterFor(self);
        oRouter.navTo("main", {});
        dialog.close();
        },
        error: function (oError) {}
        });

我收到以下错误。

SAP Gateway中没有显示错误,我们甚至都没有进入ABAP进行调试。

{"error":{"code":"/IWBEP/CM_MGW_RT/022","message":{"lang":"en","value":"The system cannot return your search. Please try again."},"innererror":{"application":{"component_id":"","service_namespace":"/SAP/","service_id":"ZSV_SURVEY_SRV","service_version":"0001"},"transactionid":"306596E88F59F1CD80C7005056BEAC32","timestamp":"","Error_Resolution":{"SAP_Transaction":"","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)","Batch_SAP_Note":"See SAP Note 1869434 for details about working with $batch (https://service.sap.com/sap/support/notes/1869434)"},"errordetails":[{"code":"/IWBEP/CX_MGW_BUSI_EXCEPTION","message":"The system cannot return your search. Please try again.","propertyref":"","severity":"error","target":""}]}}}

1 个答案:

答案 0 :(得分:3)

这主要是因为UI5触发了MERGE方法而不是PUT方法(要处理MERGE,网关内部会发出GET请求,这可能会失败)。您可以在manifest.json中将更新方法指定为“ PUT”。