SAP Message 8B251 - Only one company code can initiate a movement

Diagnosis
The material document has items belonging to more than one companycode.

System Response
Material document - Nota Fiscal interface error.
All items in the material document are Nota Fiscal relevant, but onlyplants that belong to the same company can be mixed in one document.

Procedure
Create multiple material documents; one per company code.