Hi,
Check the document flow if the contract has been processed further and subsequent documents have been created with reference to this contract, if yes, in that case you will have to first reverse all the documents and then try to change the material in this line item.
Hope this helps.