Symptom
The field "Invoice Reference(REBZG)" is not available in the payload when using the "Journal Entry - Post" API.
Environment
SAP S/4HANA Cloud Public Edition
Cause
The issue is due to missing functionality in the "Journal Entry - Post (Synchronous)" API, which does not support the Invoice Reference field.
Resolution
The field "Invoice reference" can be changed via API Journal Entry - Change (Asynchronous). So as workaround, post the journal entry via post API and then use API Journal Entry - Change (Asynchronous) to add the field "InvoiceReferenceChange" afterwards.
The link to the API on the SAP Business Accelerator Hub: Journal Entry - Change (Asynchronous)
See Also
Request ID: 257341 - API Journal Entry Post - Invoice Reference Fields
Keywords
SAP S/4HANA Cloud Public Edition, Journal Entry - Post (Synchronous) API, credit notes, Invoice Reference field, missing functionality, Journal Entry - Change (Asynchronous) API, custom field, payload. , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem