Skip to Content

Update Odata Request - Data Table - SAPUI5

Hi, experts

I am new in SAPUI5 and I need your help.

I have a Table in WEB IDE and I need update the values in the ABAP System.

This table is linked to the EntitySet in the OData Model.

When I send the request to update the data this is the response:

This is the code in the controller:

I tried to follow this blog: Gateway Batch Calls from SAPUI5, but the answer is similar

Could help me find a solution for this case.

Thank you.


cap1.png (17.8 kB)
cap2.png (9.9 kB)
cap1.png (17.8 kB)
cap3.png (29.9 kB)
cap3.png (29.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 30, 2017 at 01:05 PM


    i think you have GW servce problem search with

    /N/IWFND/ERROR_LOG and you can debug with Active Source click where is the problem in ABAP.

    			var sServiceUrl = "/sap/opu/odata/SAP/ZHR_PO_SRV/";
    			var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl);
    			oModel.update("/ErfassunglohnartenSet('" + this.oData.Pernr + "')", this.oData, null, function() {
    			// success
    			}, function(error) {
    				var parser = new DOMParser();
    				mess = parser.parseFromString(error.response.body, "text/xml").getElementsByTagName("message")[0].childNodes[0].nodeValue;
    				typ = "Error";
    Add comment
    10|10000 characters needed characters exceeded