SAP Message C6019 - Costing variant & is not permitted

Diagnosis
Every costing variant is either created tocalculate planned costs or to calculate actual costs.
You have tried to enter a costing variant that is not meant for plannedcosts or not for actual costs.

Procedure
Use the possible entries to select a valid costing variant.