SAP Message BAPI1080022 - Item ID=& is deleted on & before the creation on & by variant ID=&

Diagnosis
Items can only be discontinued for variants/alternatives, if they wereassigned to them.

Procedure
Check the input data.