SAP Message >0172 - Cross-company postings not permitted for document type &1

Diagnosis
This document contains line items with different affiliated companies.The specifications for an affiliated company will still be seen asdifferent if a company number is given in one open item but notanother.
For document type &V1&, the Customizing setting requires that theaffiliated company be unique.

System Response
Error message; you cannot post the document.
INCLUDE FICA_NA_CUST OBJECT DOKU ID TX LANGUAGE EN