2025 Apr 15 11:58 AM - edited 2025 Apr 15 12:00 PM
Hello Team,
We're trying to post a STO Purchase Order using Standard API & same we try with business object, But we get a error of (MessageClass='APPL_MM_PUR_PO',MessageNumber='065' Short Text = Use a supported purchase order item category for item &. See long text.)
please help with this to find out the way to resolve this.
Link - https://my418769-api.s4hana.cloud.sap/sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder
Payload -
{
"CompanyCode": "1000",
"PurchaseOrderType": "UD",
"Supplier": "1004",
"PurchasingOrganization": "1000",
"PurchasingGroup": "003",
"_PurchaseOrderItem": [
{
"Plant": "1007",
"OrderQuantity": 7,
"NetPriceAmount": 0,
"NetPriceQuantity": 1,
"PurchaseOrderItemCategory": "7",
"TaxCode": "2E",
"DocumentCurrency" : "",
"OrderPriceUnit" : "",
"PurchaseOrderQuantityUnit" : " "
}
]
}Request clarification before answering.
Hello @AnuradhaDwivedi,
What’s causing the error
Message: APPL_MM_PUR_PO 065 – Use a supported purchase order item category for the item & Why: The Purchase Order OData V4 API (API_PURCHASEORDER_2) does not support STO item category U (internal 7). Passing PurchaseOrderItemCategory: 7 triggers this error. SAP limits this API to standard NB POs and a small set of item categories. SAP Help Portal-APIs for Sourcing and Procurement-Purchase Order (OData V4)
Supported via the PO API include Standard (blank), Consignment (K), Subcontracting (L), Third-Party (S), and Enhanced Limits (A/E). Note that STO is not included in this list. SAP Help Portal
The correct approach for STO
Use the Stock Transport Order API instead of API_PURCHASEORDER_2:
If you insist on the PO API, you must change your scenario to a standard NB PO and remove item category U/7. By design, it still won’t be an STO and will have no Shipping tab.
SAP Support Portal-3555741 - Cannot create/update Purchase Order NB2 using API_PURCHASEORDER_2
KBAs and useful documentation
With kind regards
Chuma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to re-process your payload with item category 'A'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not see a material code in the message you posted below. You need a material code to create STO -- you can not create a STO for text items or blank items. Also if you using API
I do not see it support item category U=7
he service supports the following purchase order item categories:
| Standard | 0 | ' ' (=blank) |
| Subcontracting | 3 | L |
| Third- Party | 5 | S |
| Enhanced Limits (for materials or lean services) | A | E |
| Consignment | 2 | K |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 8 | |
| 4 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.