Symptom
Error "cost element cannot be deleted because transaction data exists" occurs when trying to change the GL account type from "Primary Cost and Revenue" to "Non Operating Expenses and Income".
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
-
Open app Manage G/L Account Master Data (or SSCUI ID 100051).
- Change the account type for specific account from "Primary Cost and Revenue" to "Non Operating Expenses and Income".
- Error message no. FH212 "Cost elements cannot be deleted because transaction data exists"
Cause
As soon as there are CO-relevant postings to a cost element it is no longer possible to remove the primary or secondary cost element property.
Even with balance zero on the G/L account the change is strictly forbidden, because the G/L account has already been posted to.
Resolution
In S/4HANA Cloud, G/L account type change is not recommended (e.g. different number ranges, account groups).
Preferably a new G/L account is to be created. This is intended and shall avoid inconsistencies.
See Also
Keywords
cost element cannot be deleted because transaction data exists, Manage G/L Account Master Data, G/L account type, Primary Cost and Revenue", "Non Operating Expenses and Income", FH212, FH 212. , KBA , FI-GL-GL-N-2CL , Master Data (Public Cloud) , FI-GL-GL-N , Master Data , Problem
SAP Knowledge Base Article - Public