Skip to Content
Author's profile photo Jordan Boen

How-To: Mass Deletion of Variants

This is a simple how-to on performing a mass deletion of variants for a particular ABAP program.

  1. 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
  2. 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
  3. With the program name in the SA38 field, click on Goto > Variants (F7)
  4. This takes you to the ABAP: Variants – Initial Screen
  5. From here, click on Variants > Catalog
  6. Next click on the button Selection criteria (this will have the standard trash can icon next to it)
  7. On this pop-up, you will be able to select the variants you wish to delete, finally clicking the Delete Variant button
  8. 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.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Bhaskar Ganguly
      Bhaskar Ganguly

      That's a real time saver. Thanks for sharing.

      Author's profile photo Jordan Boen
      Jordan Boen
      Blog Post Author

      No problem, I'm glad it helped someone because it was a huge timesaver for me too lol. Thx

      Author's profile photo Matthew Francis
      Matthew Francis

      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.



      Author's profile photo Jordan Boen
      Jordan Boen
      Blog Post Author

      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 =/

      Author's profile photo Mathias Raffel
      Mathias Raffel

      Thank you very much for posting this! I never looked at the Catalog option and did the deletions one by one before...


      Author's profile photo Ron Buchanan
      Ron Buchanan

      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?

      Author's profile photo Ron Buchanan
      Ron Buchanan

      is RMCHVARDEL an option?