SAP Message R1845 - Test: Company code cannot be changed from &1 to &2

Diagnosis
During data transfer, company code &v1& was specified with the initialdata (header record). Company code &V2& was transferred with the detaildata (data record).
The company code cannot be changed.

Procedure
The company code must be the same in the initial data and the detaildata.