Symptom
- An error occurs when attempting to cancel a supplier invoice in the Cancel Supplier Invoice Document app
- Error message indicates a problem related to the analytical account assignment.
Environment
- Product: SAP S/4HANA Cloud Public Edition
- Fiori UI for Invoice Verification (Public Cloud)
Reproducing the Issue
- Create a foreign currency purchase order with account assignment category “P”.
- Post the goods receipt.
- Post the supplier invoice successfully.
- Attempt to cancel the supplier invoice in the Cancel Supplier Invoice Document app.
- Observe an error related to analytical account assignment.
Cause
- Invoice cancellation does not necessarily reverse all postings made during the original invoice posting; this is standard system behavior.
- The reversal fails because the exchange rate difference (ERD) line, posted to a G/L that is a primary cost element, does not receive the WBS assignment during reversal, even though the original posting derived it from the purchase order.
Resolution
- Create a new G/L account dedicated to exchange rate differences (for example, a new number in the ERD range).
- Ensure this new G/L account is not created/maintained as a primary cost element (no cost element assignment).
- Assign the new G/L account to transaction key GBB-VBR for the relevant valuation class in account determination.
- Save the configuration and test by posting a new foreign currency invoice and canceling it to confirm the analytical account assignment error no longer occurs.
See Also
refer to: Credit Memos (Help Portal)
Keywords
invoice cancellation, cancel supplier invoice document, analytical account assignment error, exchange rate difference, GBB-VBR, primary cost element, WBS missing, account assignment category P, foreign currency purchase order, invoice reversal, account determination, cost element flag, MR8M, Fiori, S/4HANA Cloud , KBA , MM-FIO-IV-2CL , Fiori UI for Invoice Verification (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public