Skip to Content
0
Former Member
May 07, 2010 at 03:45 PM

create agent in init method of persistent class

21 Views

hello everybody,

I am working with persistence objects (object services) and want to enhance INIT method of my persistent class ZCL_CLASS1.

Whenever I try to create a new agent of another persistent class ZCL_CLASS2 in my INIT method, I will get a short dump.

lo_agent TYPE REF TO ZCA_CLASS2.

 lo_agent = ZCA_CLASS2=>agent.

I really don't find the mistake. I don't understand why it doesn't work. Is it not allowed to call another agent in INIT method?!

By the way, working with the get_class_agent method doesn't work either..

Does anybody know something about it?

Thx!!

Kind regards,

Anne