Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to delete all local private objects ($TMP) for all users

Former Member
0 Kudos
2,383

We have a need to 'clean-up' development class $TMP. This can be performed from SE80 for an individual user, one at a time. This is laborious and time consuming. SAP OSS have recommended I post this topic here, as there are no SAP standard ways of doing it.

Is there a way to delete all local private objects ($TMP) for all users?

Thanks,

Wayne Hanrahan.

8 REPLIES 8

Former Member
0 Kudos
570

Dear Wayne,

All objects are stored in our TADIR table. You can simply delete it from TADIR where DEVCLASS = '$TMP'.

Hope it solves your problem.

Regards,

Deva.

0 Kudos
570

Not sure that that is a good idea as it will not remove the objects completly.

Regards,

Rich Heilman

0 Kudos
570

That's right Rich. Deleting them via transactions would be the right way, as these objects have entries in more than just TADIR. Thanks for the input.

0 Kudos
570

Maybe you could use the information from TADIR to create a BDC that deletes objects based on what type of object they are. Or produce a report or spreadsheet that gives you the information to delete them one at a time.

Rob

0 Kudos
570

Thanks Rob. That is probably the only way. May put some LSMW's together, grouping by object type. Such a simple requirement, maybe SAP could put something together!

0 Kudos
570

Or you could put it together and market it!

Good luck with it.

Rob

0 Kudos
570

Wayne

Try not to upset your developers by deleting their little test programs that they will want to keep. Some $TMP programs may be useful to keep. For example Rob's program on nested loops, should not go to production, but should be kept. So new methods (or tables) can be tested. A good naming convention should help.

As you are using LSMW, Note this generates a new program each time you change any of the mapping rules. As the program name is generated you will not recognise it for what it is.

MattG

Lakshmant1
Active Contributor
0 Kudos
570

Hi Wayne,

Use FM RS_GET_OBJECTS_OF_DEVCLASS to get objects of a development class.

Thanks

Lakshman