Symptom
While posting MIRO for import items, the system displays: "G/L account XYZ is not defined in chart of accounts".
XYZ means G/L account ID
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Post a supplier invoice (MIRO) for import items.
- Observe the error: "G/L account XYZ is not defined in chart of accounts".
Cause
The supplier invoice is in a foreign currency; when the current exchange rate differs from the rate in the purchase order, the exchange rate difference is posted to transaction key KDM.
In Automatic Account Determination, G/L account XYZ is assigned to KDM but this account does not exist in the chart of accounts, leading to the error.
Resolution
- Open the Automatic Account Determination app for MM/Invoice Verification.
- Navigate to the KDM (exchange rate difference) transaction key.
- Check the assigned G/L account. If it does not exist in the chart of accounts, replace it with a valid, existing G/L account intended for exchange rate differences.
- Ensure the chosen G/L account is defined in the chart of accounts and is allowed for posting.
- Save the configuration and retry posting the MIRO document.
See Also
Keywords
MIRO, import invoice, G/L account not defined, chart of accounts, KDM, exchange rate difference, foreign currency, automatic account determination, invoice verification, posting error, MM-IV, S/4HANA Cloud , KBA , MM-IV-GF-CUST-2CL , Customizing (Public Cloud) , Problem
SAP Knowledge Base Article - Public