SAP Knowledge Base Article - Public

3799021 - Field "InvoiceReferenceDocument" shows "V" by Journal Entry Post API during Credit Memo posting in SAP S/4HANA Cloud Public Edition

Symptom

In SAP S/4HANA Cloud Public Edition, in scenario of credit memo posting, when using journal entry post API with its field "InvoiceReferenceDocument", in the journal entry posted, the field value shows as “V” instead of the actual value entered in the payload.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Post a credit memo using Journal Entry Post API with the InvoiceReferenceDocument field filled with actual value.
  2. Open the posted document and review the line items.
  3. Observe that the Invoice Reference field shows “V” and there is no link to the referenced invoice.

Cause

The system does not support the reference handling of InvoiceReferenceDocument field during a credit memo posting scenario with journal entry post API. Values will be replaced by "V" in the journal entry posted.

Documentation for invoice reference field:

Document No. of the Invoice to Which the Transaction Belongs

For line items which are related to another line item , this field contains the number of the partner document.

Use

In the standard system the field is used for the following:

  • Credit memos that refer to a particular invoice item
  • Subsequent invoices for an invoice item
  • Partial payments for an invoice item
  • Partial clearings of down payments

In the first two cases mentioned, the terms of payment terms of payment are copied from the cross-referenced invoice item into the item currently being processed. This ensures that items due on the same date are paid together by automatic payment.

A special rule applies to credit memos that contain a "V" in this field. The due date is determined in the same way as for an invoice. If the field is empty (containing neither a document number nor a "V") the due date is the baseline date for payment.

Resolution

Use journal entry change API along with the post API.

After journal entry is posted with post API, use the change API to change the invoice reference accordingly.

See Also

JournalEntryDebtorCreditorItem | SAP Help Portal

Journal Entry - Change (Asynchronous) | SAP Help Portal

Keywords

journal entry post api, invoice referencedocument, invoice reference field v, credit memo invoice link, ar line item reference, journal entry change api, link credit note to invoice, payment clearing reference, s/4hana cloud public edition, accounting interface, api limitation, ar credit memo behavior, invoice reference mapping, post incoming payments, invoice linking , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions