Message SAP /DSD/HH162 - Status "Planned" has not been set in the shipment

Diagnosis
To settle a shipment, you have to set the "Planned" status in thatshipment first.