Hi
If I am understanding correctly, you are trying to receive back the 20 quantity to unrestricted stock.
You can do a transfer posting with 542 with ref to the 541 material document. This will reduce the sub-contractor stock.
Let us know, how you resolved it.
Thanks