Purchase order amendment

Hi all,

i want to amend purchase order after it was released and part of the quantity has been received through warehouse receipt. how to change the quantity of the purchase order if part of it has been posted. If the warehouse receipt has not posted then we can reopen the purchase order and then we can change the quantity. so can you help me out in this

thanks in advance