SAP Message XC165 - &1: Sales scheduling agreement not contained in active integration model

Diagnosis
You have transferred a confirmation to the ERP system for salesscheduling agreement &V2& (material/plant combination is &V1&). However,this combination does not exist in an active integration model.
The confirmation was generated in system &V4&.

System Response
The confirmation cannot be adopted in the sales scheduling agreementbecause the sales scheduling agreement is not planned in SAP APO.

Procedure
If the sales scheduling agreement is to be planned in SAP APO, you needto include it in an active integration model.
If the sales scheduling agreement is not to be planned in SAP APO, youhave to deactivate it in SAP APO so that confirmations are not generatedthere.