SAP Message BK064 - The reference document was not generated by this transaction

Diagnosis
You have selected a reference document for display or cancellationwhich was not generated by the transaction you are performing. Thedocument cannot be used as a reference for this transaction.

System Response
Processing is terminated

Procedure
Select another document occurring in the correct number range.
Display the number ranges and enter a new document number occurring inthe correct number range.
Use the F4 key in the document number field.