SAP Message AP102 - Order &1 is already budgeted or availability control is active

Diagnosis
You tried to attach order &V1& to an investment program position.However, the specifications for this program position state that theorders assigned below it in the hierarchy must receive their budgetfrom this program position.
Order &V1&, which you want to attach, however, already has a budgetthat does not originate from an investment program. Or,availability control is still active for the order.

System Response
In order to avoid inconsistency, the order is not attached to theprogram position.

Procedure
First set the already existing budget of order &V1& to 0 (for example,using budget returns). And, if necessary, deactivate the availabilitycontrol for the order.
Then you can attach the order to the program position, and distributethe budget from the program position to the order.
If you want to avoid deactivating availability control, there isanother option. You can remove 'budgeted' status on the order(transaction OK12). To be able to remove 'budgeted' status, you have toreduce the current overall and annual budget on the order to zero, and- very important - you have to use the same business transaction(original, supplement, return ... ) as was used for entering theoriginal budget!
If the current overall and annual budgets already consist of more thanone business transaction, then you have to remove each of the budgetsseparately according to the business transaction used. (In order toavoid temporary inconsistencies, you should also ideally do this in thereverse order to that in which the budget was posted.)
Example
You create a current overall budget as follows:
RESET N1.
Original budget 1000
Supplement 200
Return 50
To remove 'budgeted' status from the order, it is not enough to enter areturn of 1150, for example, even though this would reduce the currentoverall budget to zero.
Instead you have to reduce the current overall budget to zero in thefollowing sequence:
RESET N1.
Return 50-
Supplement 200-
Set original budget of 1000 to 0.
You can only remove 'budgeted' status on the order (transaction OK12)after following these steps.

46872Assign budgeted measure to cap.inv.prog. -> AP102