SAP Message AC306 - Account &3-&1 not defined as P&L account

Diagnosis
Account &V1& is not defined as a retained earnings account (for theprofit and loss statement).
This is incorrect in circumstances &V2&.

Procedure
Either change the account definition or assign a different account forthe given circumstances.