SAP Message QM195 - Material document is not valid for the purchasing document you entered

Diagnosis
The assigned material document is not valid for the purchasing documentyou entered.
You cannot therefore, make a return delivery for this purchasingdocument and this material document.

Procedure
Check the numbers of the material and purchasing documents.