SAP Message AP104 - Order &1 is not an internal order/maintenance order

Diagnosis
You tried to attach an order to an investment program position. This isonly allowed for internal orders and maintenance orders.
The order you entered, however, is neither an internal order nor amaintenance order.

System Response
The function is not carried out.

Procedure
Attach only internal orders or maintenance orders to investment programpositions.