on 2021 Oct 14 12:59 PM
Hi Team,
1. I have a problem when creating sales orders from OData API.
I can't write the item list price. This is the JSON request body I used is attached
{
"Name": "Checking price for orders 8",
"DataOriginTypeCode": "1",
"SalesUnitParty": {
"PartyID": "{{SalesUnitID}}"
},
"BuyerParty": {
"PartyID": "{{CustomerID2}}"
},
"PricingTerms": {
"CurrencyCode": "EUR",
"GrossAmountIndicator": false
},
"Item": [
{
"ID": "10",
"ProcessingTypeCode": "TAN",
"ItemProduct": {
"ProductID": "{{ProductID}}"
},
"ItemPriceAndTaxCalculation": {
"ItemPriceComponent": [
{
"Description": "Total Item Net Value",
"DecimalValue": "100",
"CurrencyCode": "EUR",
"BaseMeasureUnitCode": "EA",
"BaseDecimalValue": "1"
}
]
},
"ItemScheduleLine": [
{
"Quantity": "3",
"unitCode": "EA"
}
]
}
]
}
URL - "https://{{TenantHostname}}/sap/byd/odata/cust/v1/khsalesorder/SalesOrderCollection". and I got the below error
{"error": {"code": "cx_odata_not_creatable_error","message": { "lang": "en","value": "Entity set: ItemPriceAndTaxCalculationCollection is not allowed for creation. Check service metadata."} } }
Could you please provide the solutions?
Thank you!
Request clarification before answering.
Were you able to find a sollution?
We are suffering from the same issue.
Seems to not work with ODATA but only using SOAP.
Thanks
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
39 | |
8 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.