Hi, experts
Trying to do Post with batching functionality.. https://myXXXX.s4hana.ondemand.com:443/sap/opu/odata/sap/API_SALES_ORDER_SRV/$batch
I get this error when sending "The Data Services Request could not be understood due to malformed syntax".. What am I doing wrong ?
Headers
authorization basic authorization.. user and password
content-type multipart/mixed; boundary=batch_mybatch
xcsrf-token token given body
body payload
--batch_mybatch
Content-Type: multipart/mixed; boundary=changeset_mychangeset
--changeset_mychangeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST A_SalesOrder HTTP/1.1
Content-Type: application/json
{
"SalesOrderType": "OR",
"SalesOrganization": "2410",
"DistributionChannel": "10",
"OrganizationDivision": "01",
"SoldToParty": "CUSTOMER-1",
"TransactionCurrency": "EUR",
"SDDocumentReason": "Z01",
"to_Item": {
"results": [
{
"Material": "P121000",
"RequestedQuantity": "1",
"RequestedQuantityUnit": "PI",
"to_PricingElement": {
"results": [{
"ConditionType": "PMP0",
"ConditionRateValue": "150.00",
"ConditionCurrency": "EUR"
}
]
}
},
{
"Material": "P122000",
"RequestedQuantity": "1",
"RequestedQuantityUnit": "PI",
"to_PricingElement": {
"results": [{
"ConditionType": "PMP0",
"ConditionRateValue": "180.00",
"ConditionCurrency": "EUR"
}
]
}
}
]
}
}
--changeset_mychangeset1
--batch_mybatch--
Comments
Comments