Symptom
Creating a Supplier Invoice via a custom OData service fails and returns "The server has not found any resource matching the Data Services Request URI".
Environment
SAP Business ByDesign
Reproducing the Issue
- Perform a GET on the custom OData service $metadata endpoint to obtain an x-csrf-token.
- Send a POST request to the service entity set for SupplierInvoiceCollection with the x-csrf-token and a payload.
The response returns HTTP 404 error.
Cause
Missing mandatory fields in the POST request payload (for example, TypeCode and other required header/item fields).
Resolution
-
Build the request payload by including all required header fields, such as TypeCode, currencyCode, DataOriginTypeCode, Date, TransactionDate, DocumentItemsGrossAmountIndicator, along with the relevant party nodes (SupplierInvoiceSellerParty.PartyID, SupplierInvoiceBuyerParty.PartyID, SupplierInvoiceEmployeeResponsibleParty.PartyID).
-
Enter least one item is maintained with mandatory fields like TypeCode, NetAmount, Quantity, unitCode, ProductID, ProductTypeCode, and an AccountingCodingBlockDistribution containing an assignment.
For example, Sample Payload:
{
"TypeCode": "004",
"currencyCode": "EUR",
"DataOriginTypeCode": "1",
"Date": "2025-12-31T00:00:00.0000000",
"TransactionDate": "2025-12-31T00:00:00.0000000",
"DocumentItemsGrossAmountIndicator": false,
"SupplierInvoiceSellerParty": {
"PartyID": "value"
},
"SupplierInvoiceBuyerParty": {
"PartyID": "value"
},
"SupplierInvoiceEmployeeResponsibleParty": {
"PartyID": "value"
},
"SupplierInvoiceItem": [
{
"NetAmount": "100",
"TypeCode": "002",
"Quantity": "1",
"unitCode": "EA",
"ProductID": "value",
"ProductTypeCode": "2",
"SupplierInvoiceItemAccountingCodingBlockDistribution": {
"SupplierInvoiceAccountingCodingBlockAssignment": [
{
"CostCentreID": "value",
"AccountingCodingBlockTypeCode": "CC"
}
]
}
}
]
}
Keywords
Odata; 404; The server has not found any resource matching the Data Services Request URI; Resource not found; Data services request URI; Supplierinvoicecollection; Mandatory fields , KBA , AP-SIP-SIV , Supplier Invoice , How To
SAP Knowledge Base Article - Public