cancel
Showing results for 
Search instead for 
Did you mean: 

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

AnuradhaDwivedi
Discoverer
0 Kudos
114

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 (1)

Answers (1)

jagdeepsingh83
Active Contributor
0 Kudos

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
Discoverer
0 Kudos
I have added material number also but its showing same error