Error "Contract C123 item X is not a valid reference for the document ABC item XX" appears during contract determination for Sales Quotes (C123 represents the contract ID; X/ XX represent the line item number and ABC represents the document name/ID).
SAP Cloud for Customer
The error 'Contract &1 Item &2 is not a valid reference for the Document &3 Item &4.' is relevant for integration scenarios of contract and sales quote/order, just to make sure that a contract which is determined and assigned to a quote or order has the replication status 'finished' (only such fully 'completed' contracts are valid for 'call-off').
For example, the error can occur:
- When creating a sales quote or order, a contract is determined and assigned to the quote or order. At the same time, the contract is changed, too (typically by PDI at the AfterModify or BeforeSave). This leads to a change of the contract replication status from 'finished' to 'in process' and thus causes the error when SAVE is called.
- After a contract has been assigned to a quote or order, the contract gets changed (by a User) and the replication status is still 'in process' (as the replication of those changes is not yet finished). At the same time the quote or order is changed. In this case the error occurs, too.
Please be aware that a 'finished' replicated contract shall not be changed at the same time when a follow-up quote or order is getting created (as a 'call-off').
Sales quote, contract, error, determination, line item , KBA , LOD-LE-CQP , Customer Quote Processing , LOD-LE-COP-SLS , Sales Contract , How To