cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to Create/Post STO Purchase order Using BO/API

AnuradhaDwivedi
Explorer
0 Likes
1,457

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" : " "
           
        }
    ]
}

Screenshot 2025-04-15 155022.png

Accepted Solutions (0)

Answers (3)

Answers (3)

Chuma
Active Contributor
0 Likes

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

Lakshmipathi
SAP Champion
SAP Champion
0 Likes

You need to re-process your payload with item category 'A' 

jagdeepsingh83
Active Contributor
0 Likes

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 

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/91af7f8d3acd47da90d33aaacfcd0d59/c89eec80ec2043d980c...

I do not see it support item category U=7

he service supports the following purchase order item categories:

Purchase Order Item Category Internal Symbol* External Symbol**
Standard0' ' (=blank)
Subcontracting3L
Third- Party5S
Enhanced Limits (for materials or lean services)AE
Consignment2K
AnuradhaDwivedi
Explorer
0 Likes
I have added material number also but its showing same error
AKJaman
Explorer
0 Likes
Hi Everyone, Any Solutions found on this? Can we Create STO using Purchase Order API?Since API: sap-s4-CE_STOCKTRANSPORTORDER_0001 for Public Cloud purpose, what other API can we use for Private Cloud?