on 10-30-2023 10:54 AM
Hi
I am facing issue in updating multiple supplier names using this API. I am running a batch operation, but looks like only the first supplier names are being updated, and rest of the data entries are not updated. Here are the details
1. API url
/sap/opu/odata/sap/API_BUSINESS_PARTNER/$batch?sap-client=111<br>
2. Payload
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PATCH A_BusinessPartner('26500331') HTTP/1.1
Accept: application/json
Content-Type: application/json
{"OrganizationBPName1":"Test Name33","OrganizationBPName2":"Test Name44","OrganizationBPName3":"Test Name55"}
--changeset--
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PATCH A_BusinessPartner('26500332') HTTP/1.1
Accept: application/json
Content-Type: application/json
{"OrganizationBPName1":"Test Name99","OrganizationBPName2":"Test Name88","OrganizationBPName3":"Test Name77"}
--changeset--
--batch--
3. response ( while running it from Postman)
--9C31631F2CF0AF532F4EB661AB9117010
Content-Type: multipart/mixed; boundary=9C31631F2CF0AF532F4EB661AB9117011
Content-Length: 238
--9C31631F2CF0AF532F4EB661AB9117011
Content-Type: application/http
Content-Length: 71
content-transfer-encoding: binary
HTTP/1.1 204 No Content
Content-Length: 0
dataserviceversion: 2.0
The payload looks fine. But only the first supplier name fields are updated, but not for the second one. Are there any issues with batch for this API? Thanks
User | Count |
---|---|
96 | |
10 | |
10 | |
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.