SAP Message 9J642 - Plant and controlling area must be in the same company code

Diagnosis
Plant &V1& has been created in company code &V2& and cost center &V3& incompany code &V4&. However, both must be in the same company code.

Procedure
Change the plant or the cost center so that the comapny codes are thesame.