Luis Montero
API Sales Order /A_SalesOrder('XXX')/to_Item
Luis Montero · over 1 year ago · Question
Answered
Luis Montero

Hi experts, 

Previously, we have an sales order and we would like to insert new line items to this sales order, so we use API

https://myXXXXXX.s4hana.ondemand.com:443/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder('103')/to_Item

The problem we have is we are not able to create more than one line position by API call.. May someone assure this point ? or maybe I am doing something wrong ?   Thanks for helping.

Attached body example I´m trying to : 

{

"Material": "P121000",

"RequestedQuantity": "1",

"RequestedQuantityUnit": "PC",

"SalesOrder": "103",

"to_PricingElement": {

"results": [{

"ConditionType": "PMP0",

"ConditionRateValue": "150.00",

"ConditionCurrency": "EUR"

}

]

}

},

{

"Material": "P122000",

"RequestedQuantity": "1",

"RequestedQuantityUnit": "PI",

"SalesOrder": "103",

"to_PricingElement": {

"results": [{

"ConditionType": "PMP0",

"ConditionRateValue": "300.00",

"ConditionCurrency": "EUR"

}

]

}

}

Comments

Comments
Alumni