SAP Message RERAOP005 - Company code of document &1 not the same as that of basic data &2

Diagnosis
According to the specifications in Customizing, the company code of thedocument is derived from the company code in the basic data.
However, you entered a different company code.

Procedure
Change the company code if necessary.