Symptom
- A credit memo references an invoice, but the Assignment field in Manage Customer Line Items app contains the credit memo number(or another value) instead of the original invoice assignment.
- The behavior occurs although the credit memo was created with reference to the invoice.
Environment
SAP S/4HANA Cloud Public Edition
Cause
- During posting of the credit memo accounting document, the system attempts to read the open item of the referenced invoice.
- If the accounting document of the referenced invoice has not yet been created, the system cannot retrieve the Assignment from the original invoice.
Example:
Document Journal Entry Creation Time
Credit Memo 18.11.2024 03:39:23
Invoice 18.11.2024 03:40:47
In this example, the accounting document for the credit memo is created before the accounting document for the invoice.
Since the invoice open item does not yet exist:
- No Assignment can be copied from the invoice.
- The system falls back to the standard Assignment determination logic.
- Typically, the Assignment provided by SD Billing is used.
This behavior is expected.
Resolution
- Verify the posting timestamps of the accounting documents.
- If the credit memo accounting document was created before the invoice accounting document, the Assignment cannot be copied because the referenced accounting document was not yet available during posting.
- No correction is required, as this is standard system behavior.
- To avoid this situation, ensure that the accounting document for the original invoice is created before the accounting document for the credit memo whenever possible.
Note:
The Assignment field is determined during accounting document creation and is not recalculated after the referenced invoice is posted.
Keywords
assignment, ZUONR, manage customer line items, credit memo, referenced invoice, billing document, journal entry, invoice reference, sd-fi transfer, clearing, customer receivables, report field, inheritance, reference key, account posting , KBA , FI-FIO-AP-TRA-2CL , Transaction Apps: Public Cloud , SD-BIL-IV-2CL , Processing Billing Documents (Public Cloud) , Problem
SAP Knowledge Base Article - Public