How-To: Mass Deletion of Variants
This is a simple how-to on performing a mass deletion of variants for a particular ABAP program.
- First, copy the name of the ABAP program you wish to look at
- If you do not know this, go into the transaction and go to System > Status… and look in the Program field
- Next go to SA38 and paste in the program name
- Note – you can actually get there from the transaction by going to System > Services > Reporting
- With the program name in the SA38 field, click on Goto > Variants (F7)
- This takes you to the ABAP: Variants – Initial Screen
- From here, click on Variants > Catalog
- Next click on the button Selection criteria (this will have the standard trash can icon next to it)
- On this pop-up, you will be able to select the variants you wish to delete, finally clicking the Delete Variant button
- You’ll get one final warning, and once allowing, they will be removed.
Pretty simple, but was very helpful for me post installation and Go-Live where we had hundreds of unused variants to get rid of for particular programs.
That's a real time saver. Thanks for sharing.
No problem, I'm glad it helped someone because it was a huge timesaver for me too lol. Thx
Thanks Jordan. Is there anyway you know of a report or a field that could give me the last used date of a given variant? Now that you've shown how to easily delete, I'd like to know how to find unused variants.
Thanks!
Oh wow, not sure that is possible - how is the main program being run, by a user or by a background job?
If by a background job, you could look in table TBTCP at program and variant...but I am currently unaware of a report that would show you if a front end user used a variant or when a variant was last used =/
Thank you very much for posting this! I never looked at the Catalog option and did the deletions one by one before...
What about if you have more than you want to click on? I have some jobs where I want to redo the the variants but they number in the hundreds?
is RMCHVARDEL an option?