cancel
Showing results for 
Search instead for 
Did you mean: 

Can any one help me on $batch issue for creating multiple records (POST)

Former Member
0 Kudos

I have to create records for multiple entries in to table using $batch operations

I created every thing and trying to execute but I am not able to get the result. I tried to debug by placing external break point, but the break point is not triggering.

I have given the URI /sap/opu/odata/sap/XXXXXX/$batch

the request body content as

--batch
Content-Type: multipart/mixed; boundary=batch


--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary

POST AttachmentSet HTTP/1.1
Content-Type: application/jsonxml
Content-Length: 1000

{"TicketItem": "XXXX1001010","PermissionCatalog":"12","SizeBytes": "462","FileLocation": "XXX/2017/07/md5.jpeg","FileName": "blocks.jpeg","ContentType": "image/jpeg"
}

--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary


POST AttachmentSet HTTP/1.1
Content-Type: application/jsonxml
Content-Length: 1000

{"TicketItem": "XXXX001010","SizeBytes": "3000","FileLocation": "XXXX/2017/07/md1.jpeg","FileName": "test.jpeg","ContentType": "image/jpeg"
}

--changeset--
--batch--

When I am trying to execute I got the result as shown,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks problem resolved