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: 

create agent in init method of persistent class

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

ooopps..sorry.. I have to admit, that there is a mistake within my special persistent class.. I just have to find it...

post can be deleted by admin! sorry again.. 😮

I found my mistake..

Edited by: winnerin on May 7, 2010 6:20 PM