If you have already follow on movements that had changed/reduced the stock then of course you cannot cancel the original material document. You first need to cancel your follow on movements.
if you posted in order 1 - 2 - 3 - 4, then you need to reverse first 4, then 3, then 2, then 1
And you should in any case analyze how it could be possible to receive the same goods twice