In transaction code SE38, enter the Program name and select Variants under the Subobjects. Choose Change.
From the top menu, select Variants > Rename (or using keyboard button, F9). Enter the Variant new name. Press Continue.
You will get the below information dialog box which says your variant name has been changed.