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: 

How do I *really* delete a class?

Former Member
0 Kudos

Hello everyone.

I have tried to create a persistent class in the Object Navigator using the usual creation dialogue. For some reason, the creation process of the persistent class and the corresponding agent classes stopped prematurely. So I ended up with the actual zcl class, a base agent zcb class, but no agent zca class.

This sucked, so i tried to delete them, which failed:

- Deleting the actual class -> can't access class agent

- Deleting the base agent -> not allowed to access co-classes directly

So I'd be glad if someone handed me the crowbar i need to get rid of these orphan classes.

cheers & Thanks in advance,

Jens

EDIT:

BTW - If anyone has ever managed to get inheritance and persistent classes working together, please let me know. E.g. persistent class b inherits persisten class a, both work on the same table which has a type identifcator column to distinguish between types.

Edited by: Jens Barthel on Sep 12, 2008 4:09 PM

3 REPLIES 3

narin_nandivada3
Active Contributor
0 Kudos

Hi Jens,

As you know what ever we create are maintained in Table TADIR.

so if it is not possible to delete directly then write a simple program to delete the entry in TADIR table..

Delete <classname> 
           From TADIR
           where PGMID = 'R3TR' 
           and OBJECT = 'CLAS' 
           and DEVCLASS = '$TMP'  " if its local or specify the package name.

Before that check the entry in the table.

This would do to delete.

Hope this would help you.

Good luck

Narin

0 Kudos

Hey Narin, thanks for the quick reply.

I have deleted the two troublemakers from TADIR, but they are still present in the Object Navigator. I can also still open them with the class builder.

Any suggestions?

Jens

0 Kudos

Hi,

Even you delete the package corresponding to it from TDEVC table..

Hope this would help you.

Good luck

Narin