12-12-2017 6:55 PM
Hi everyone,
I'm facing this error "Use purchase order category “Standard” (“NB”) when I'm calling the avaiable SAP API, API_PURCHASEORDER_PROCESS_SRV.
I'm making a simple POST request, as you can see below:
{
"PurchaseOrder" : "",
"PurchasingOrganization" : "1500",
"PurchasingGroup" : "Z01",
"CompanyCode" : "1500",
"SupplyingSupplier" : "2000060",
"Supplier" : "2000060",
"PurchaseOrderType" : "ZP01",
"DocumentCurrency" : "EUR",
"to_PurchaseOrderItem" :
[{ "OrderQuantity": "1",
"PurchaseOrderQuantityUnit" : "KG",
"Material": "1000000159",
"Plant": "1503",
"PurchaseOrderItemCategory" : "0" }] }
Does anyone know why I'm having this error? or what is missing on my request?
Best regards and thank you in advance
01-19-2018 8:52 PM
I did
"PurchaseOrderType": "NB",
Not sure why but for me that was the reason of the error
04-11-2018 9:23 AM
It was written in the Note 2586313 - Cannot update Purchase Order using API_PURCHASEORDER_PROCESS_SRV.
API can only Create / Update NB Purchase Orders, this is also described in the SAP help: