SAP Message VHUPD231 - HUs for which GR has been posted cannot be deleted

Diagnosis
You want to delete a HU for which the confirmation and stock postinghave already been made. Deleting the HU would only change thematerial stock in the HU from packed tounpacked. All other actions that affect the confirmation ofthe production order or repetitive manufacturing, such as removingcomponents or activity backflushes, cannot be reversed.

Procedure
Cancel the HU in the confirmation for the production order or in theconfirmation for repetitive manufacturing. Only then can you delete theHU using this function.