cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in updating multiple Business Partner names using API_BUSINESS_PARTNER in batch operation

SandipAgarwalla
Active Contributor
0 Kudos

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
Necla_Catakli
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Sandip,

Unfortunately, it seems to be taking longer than usual for your question to be answered. You might want to try an alternative route to speed things up.

Please check if a similar question has already been asked in the Community. We have found that sometimes questions that have been answered before are no longer receiving responses.

The easiest way to do this, is to visit the All Questions page and search for your specific topic.

You could also check the SAP Support Portal and search for SAP Notes, SAP Knowledge Base Articles and more.

If all of this doesn’t work, I would suggest that you create a support ticket. All you need to do is log onto the SAP Support Portal with your S-user ID and password: http://service.sap.com/message

Thank you,

Necla

Accepted Solutions (0)

Answers (0)