cancel
Showing results for 
Search instead for 
Did you mean: 

$batch CRUD (Create) response data empty

0 Kudos

Hi,

I created a batch CREATE call which works fine (table entries are added), but when the call is finished the resulting JSON contains blank values however I can see, via debug, in my DPC_EXT class that er_entity has data in there.

oDataModel.submitChanges({
  groupId: "pGroup",
  success: function (data) {
    //HERE -> the JSON entity values in "data" are all blank :(
  }.bind(this),
  error: function (e) {
    //Error
  }.bind(this)
});

data:

__batchResponses: Array(1)
  0:  __changeResponses: Array(60)
      0: data:
         Currency: ""
         Id: ""
         PhasingMonth: ""
         PhasingYear: ""
         RorId: ""
         Value: 0

SAP CREATE_DPC_EXT er_entity (what I expected to see in 'data' above):

ID               000000000541
ROR_ID           7
PHASING_YEAR     2019
PHASING_MONTH    01
VALUE            12
CURRENCY         USD                        

HTTP Response (notice values are blank):

--5E1F83830CC8771F3E26EF55DB470FCB0 
Content-Type: multipart/mixed; boundary=5E1F83830CC8771F3E26EF55DB470FCB1 Content-Length: 48399 --5E1F83830CC8771F3E26EF55DB470FCB1 Content-Type: application/http Content-Length: 677 content-transfer-encoding: binary HTTP/1.1 201 Created Content-Type: application/json Content-Length: 428 location: https://xxxx/sap/opu/odata/sap/Zxxx_SRV/PhasingSet(Id='',PhasingMonth='',PhasingYear='') dataserviceversion: 2.0

The INSERT works fine - Seems the issue is with bringing back the data from SAP to UI5.

Is anyone able to assist? UI5 version: 1.38

Accepted Solutions (0)

Answers (1)

Answers (1)

sbahad1
Discoverer
0 Kudos

I am facing the same issue. Does anyone know why?