Symptom
A supplier invoice document is unposted due to the following error message:
"Referenced item XX-1 of Contract XX not found"
XX-1 refers to the Contract line item and XX refers to the Contract ID.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to the General Ledger work center.
- Go to the Source Documents view.
- Select the Unposted Supplier Invoice Document ABC (ABC refers to the Supplier Invoice).
- The error message is 'Referenced item XX-1 of Contract XX not found'.
Cause
The contract item XX-1 included in the Supplier Invoice ABC is canceled. An invoice with the canceled contract cannot be posted.
Resolution
The supplier invoice ABC has to be canceled and both the original and the canceled invoice had to be marked as irrelevant from the backend.
To mark the documents as irrelevant, you must set the cancellation invoice as irrelevant first which will set the original invoice as irrelevant automatically. Upon opening the business transaction for accounting for the cancellation invoice, the button Mark as Irrelevant will be enabled.
See Also
Keywords
Supplier Invoice, Unposted Source Document, Contract, Referenced item of contract. , KBA , SRD-FIN-GL , General Ledger , Problem