SAP Message F5080 - Consolidated companies & and & are different

Diagnosis
The number of the affiliated company must be clear for the selecteddocument type for all line items. In this case at least two differentcompanies or a company in connection with a business partner who doesnot belong to a company are stated.

Procedure
If you selected the correct accounts, you must enter the document witha document type that allows cross-company posting. Otherwise, pleasecorrect the entered account.