on 2024 Nov 29 9:24 AM
Hi
To create purchase orders using API we are planning to use API_PURCHASEORDER_PROCESS_SRV. With this API we are able to create a PO with Multiple line items.
We are unable to post multiple line items for existing PO. Kindly let us know whether this API has the feature to add/update multiple line items in existing PO. If yes kindly share the payload format for addition of multiple PO line item in existing PO
Tried with URI
/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/A_PurchaseOrderItem
and Post option but getting issue while posting API
Payload:
[
{
"PurchaseOrder": "8500000021",
"PurchaseOrderItemText": "OData API test",
"OrderQuantity": "1",
"PurchaseOrderQuantityUnit": "PC",
"DocumentCurrency": "MXP",
"AccountAssignmentCategory": "P",
"Material": "GNA2262840",
"_PurOrdAccountAssignment": [
{
"Quantity": "1",
"OrderQuantityUnit": "PC",
"ProjectNetwork": "901656530",
"NetworkActivity": "0030"
}
]
},
{
"PurchaseOrder": "8500000021",
"PurchaseOrderItemText": "OData API test2",
"OrderQuantity": "1",
"PurchaseOrderQuantityUnit": "PC",
"DocumentCurrency": "MXP",
"AccountAssignmentCategory": "P",
"Material": "GNA2262840",
"_PurOrdAccountAssignment": [
{
"Quantity": "1",
"OrderQuantityUnit": "PC",
"ProjectNetwork": "901656530",
"NetworkActivity": "0030"
}
]
}
]
FYI- we are able to successfully update/post 1 line item in exiting PO.
We are also trying to use Odata V4 API but status is 201 and data is not getting created in system
Kindly share your comments on usability of ODATA v2 and V4 Po API.
Thanks
Deepthi
Request clarification before answering.
| User | Count |
|---|---|
| 26 | |
| 13 | |
| 13 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.