SAP – Deleting a Package

Home / Blog / SAP – Deleting a Package

Well, this turned out to be more time consuming than I expected.  I decided to finally move my dev system from an EHP4 box, to my EHP7 box.  Generally, not a big deal (or so I thought).  I cloned my existing EHP7 system so I’d have the latest notes, kernel and support packs.  The problem is that it also had all of my code.  The reason why this posed an issue is that I like to have a blank box I can implement my code into, just to be sure I didn’t forget any objects in my transports.

So, once I got the box cloned, and changed the instance number, I needed to go about deleting all of my code.  Most of it wasn’t difficult, but very tedious.  Where I ran into problems is when I deleted everything in SE80 associated with the package, but it still wouldn’t let me delete it.  UGH.  I finally found a post that helped me figure out how to do it.

https://archive.sap.com/discussions/thread/3407751

What this post describes is that in order to delete a package, it takes multiple transports.  First you need to release all the objects you deleted before you can delete the package.  In addition, not everything deletes cleanly (especially when dealing with Gateway Services and UI5).  I’m hoping this is just a factor of not having the latest updates, but who knows.

Anyway, I found that I needed to delete certain table entries (you can get these from the transport logs after releasing), and then repeat the process until you get everything.  Table TADIR is the key, if there are items connected here, you can’t delete the package.  Anyway, hope this might help you (or me) in the future.

thanks for reading,

As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,
Mike

Leave a Reply

Your email address will not be published. Required fields are marked *