SAP Message AP107 - Functional location &1 does not belong to company code &2

Diagnosis
The functional location &V1& does not belong to company code &V2& ofthe capital investment program position. Instead it belongsto company code &V3&.

System Response
The allocation is not allowed.

Procedure
Please correct your entry.