SAP Knowledge Base Article - Public

3738684 - Error message "Property 'Material' is invalid" in API API_SUPPLIERINVOICE_PROCESS_SRV for g/l account supplier invoice items

Symptom

Using the API API_SUPPLIERINVOICE_PROCESS_SRV to create supplier invoice items for G/L account posting fails when the Material field is included; the service returns “Property 'Material' is invalid”, the field appears in the Create Supplier Invoice app.

Environment

SAP S/4HANA Cloud Public Edition

Cause

The Material field is not part of the backend accounting data model for G/L account postings; it is shown in the Create Supplier Invoice app only for derivation/user assistance and is not persisted in the FI document.

Resolution

Although the Material field is visible in the Fiori app “Create Supplier Invoice”, it is not part of the underlying accounting document structure for G/L account postings.

The field is provided in the UI for derivation and user assistance purposes only, and its value is not persisted in the FI document.

The API API_SUPPLIERINVOICE_PROCESS_SRV strictly follows the backend data model. Since the entity A_SupplierInvoiceItemGLAcctType does not include the Material field in its metadata, passing this field in the payload results in the error faced.

See Also

SAP Note 1797736 - Error analysis for SAP Gateway / OData services

SAP Note 1869434 - Working with $batch in OData services

Keywords

API_SUPPLIERINVOICE_PROCESS_SRV, A_SupplierInvoiceItemGLAcctType, supplier invoice, G/L account posting, material field, Property 'Material' is invalid, /IWCOR/CX_DS_EP_PROPERTY_ERROR, OData error, Create Supplier Invoice app, $metadata, payload validation, GL item, invoice API, MM-IV, invoice posting , KBA , MM-IV-LIV-BAPI-2CL , BAPI (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions