SAP Knowledge Base Article - Public

3838004 - EML create on I_SupplierInvoiceTP posts wrong document type for subsequent debit/credit.

Symptom

Using EML (MODIFY ENTITIES OF I_SupplierInvoiceTP, action create) in a background job to post Supplier Invoice adjustments results in incorrect document categories.

Subsequent Credit is created as a standard Credit Memo.

Subsequent Debit is created as a standard Invoice.

No runtime error or dump is raised.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Prepare an EML payload for MODIFY ENTITIES OF I_SupplierInvoiceTP (EXECUTE create) referencing a posted invoice (header includes credit direction and reference fields).
  2. In the items with PO reference, set only the item-level subsequent flag (suplrinvcissubsqntdebitcrdt = 'X') for value-only adjustments.
  3. COMMIT ENTITIES.
  4. Observe that the system posts a standard Credit Memo (for credit-side) or a standard Invoice (for debit-side) instead of a Subsequent Credit/Debit.

Cause

The API does not support a header-level “subsequent debit/credit” indicator; subsequent determination is solely based on the item-level flag, so relying on header context leads to standard Credit Memo/Invoice creation.

Resolution

Do not set any “subsequent debit/credit” parameter at header level (it is not available in I_SupplierInvoiceTP and is not needed).

Set the item-level flag suplrinvcissubsqntdebitcrdt = 'X' for every relevant item under items-with-PO-reference to create a value-only adjustment.

Ensure the subsequent flag is consistently set on all items that belong to the document; mixing flagged and unflagged items can result in standard document type determination.

For credit-side adjustments, continue to use the standard credit-direction fields (for example, the credit memo indicator and the invoice reference) together with the item-level subsequent flag.

Run COMMIT ENTITIES and verify that the resulting document category is Subsequent Credit or Subsequent Debit as intended.

Keywords

EML, I_SupplierInvoiceTP, RAP, Logistics Invoice Verification, subsequent debit, subsequent credit, wrong document type, credit memo instead of subsequent credit, item-level flag, suplrinvcissubsqntdebitcrdt, header flag not supported, MODIFY ENTITIES, COMMIT ENTITIES, background job, supplier invoice adjustment , KBA , MM-IV-LIV-2CL , Logistics Invoice Verification (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions