on 06-20-2022 6:37 AM
Hello Folks,
I have a scenario in CPI in which i need to read data from an excel file and POST a batch operation on S/4 Hana system.
For POST to S4 system i am using Purchase Contract API (Standard API from API business HUB)
Link : https://api.sap.com/api/API_PURCHASECONTRACT_PROCESS_SRV_0002/resource
Issue : While trying to do POST i am getting 405 method not allowed error. I amusing contetct type as multipart/mixed; boundary=batch
And payload is in below format :
--batch
Content-Type: multipart/mixed;boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST A_PurchaseContract HTTP/1.1
Content-Type: application/json
Accept: application/json
sap-context-accept: header
{ -sample body-}
--changeset--
--batch--
i checked that POST batch operations are allowed on the API. Can you please suggest what am i missing?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.