Hi Experts,
I have a table in backend with 2 primary key 'BP_KEY' & 'REG_KEY' as shown below.
Now i have to update/insert the records for multiple entries in the table using $batch operations.
I have redefined my methods changeset_begin & changeset_end.
Now when i try to update the records, the status changes to 202 accepted but gives the information
" Empty response body: Check your batch request
body. See also SAP note 1869434."
i have given the URI /sap/opu/odata/sap/YBUSI_PROCESS_SRV/$batch
the request body content as,
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT SPRegtnSet(BP_KEY='3004',REG_KEY='6001') HTTP/1.1
Content-Type: application/json
Content-Length: 1000
{
"BP_KEY" : "3004",
"REG_KEY" : "6005",
"REG_NAME" : "FISMA - NIST",
"VERSION" : "1"
}
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT SPRegtnSet(BP_KEY='3005',REG_KEY='6002') HTTP/1.1
Content-Type: application/json
Content-Length: 1000
{
"BP_KEY" : "3004",
"REG_KEY" : "6005",
"REG_NAME" : "FISMA - SANS",
"VERSION" : "1"
}
--changeset--
--batch—
The backend table is not being updated. Please help me to resolve this. I dont know where the problem is.
Thanks in advance,
Gowtham