SAP Knowledge Base Article - Public

3744373 - Custom Odata Returns HTTP 404 error: "The server has not found any resource matching the Data Services Request URI".

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

  1. Perform a GET on the custom OData service $metadata endpoint to obtain an x-csrf-token.
  2. 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

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

  2. 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

Product

SAP Business ByDesign all versions