Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Use purchase order category “Standard” (“NB”) error - API_PURCHASEORDER_PROCESS_SRV

Former Member
1,202

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

2 REPLIES 2
Read only

Former Member
0 Kudos
682

I did

"PurchaseOrderType": "NB",

Not sure why but for me that was the reason of the error

Read only

MakotoS
Product and Topic Expert
Product and Topic Expert
0 Kudos
682

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:

OData Service for Purchase Order API