Message SAP WY049 - VSR $ cannot be deleted due to variant data in purchasing organization $

Diagnosis
Variant data still exist (purchasing data or partner functions) for thevendor sub-range in a purchasing organization.

Procedure
First delete the variant data.