Application Development and Automation 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: 
Read only

Base Agent Class delete Problem.

Former Member
0 Likes
477

Hello,

i've got a Base Agent Class (ZCB....) in my classlibary, but i've got no persistent class and no agent class

that belong to this class.

i will delete the base agent class, but i can't do this.

have anyone an idea to delete this class?

thanks to you

2 REPLIES 2
Read only

former_member226225
Contributor
0 Likes
411

Hi,

By default the lifetime and scope of the object is within the program where it is declared i.e once the control comes out of the program the memory allocated for the object will be destroyed . To store the state of the object permantly we use persistence service.

persistence service can be implemented in 2 ways,

(1) Business Key Identity.

(2) GUID (Global Unique Identifier).

persistence service can be implemented by using persistence classes.

persistence class are always created globally and it starts with the naming convention 'ZCL_' or ' YCL_'.

It is always created as protected class.

whenever the persistence class is created sap generate two classes internally.

(1) Base Agent Class: it starts with the naming convention 'ZCB_' or 'YCB_'

it is created as abstract class by default . It is friend of persistence class.

(2) Actor Class or Agent Class: It starts with the naming convention 'ZCA_' or 'YCA_'. It is always created as private class and it is subclass of base agent class.

So , with this Base Agent classes are created only when the PERSISTENCE CLASS are created..

so , please check once again for the persistence class

Thanks & Regards,

Raghunadh.K

Read only

MarcinPciak
Active Contributor
0 Likes
411

Any reason why you want to delete it? Who is the owner of this class? Why you want to get rid of it?

Regards

Marcin