SAP Message AC302 - Account &3-&1 not allowed to be P&L account

Diagnosis
Account &V1& is defined as a retained earnings account (for the profitand loss statement).
This is incorrect for circumstances &V2&.

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