‎2006 Nov 17 9:13 AM
Hi community,
I have a problem regarding persistent classes. I have created a persistent class that has another persistent object as attribute.
When that attribute is not filled. I can do a succesful "commit work". When I instantiate the attribute class seperately and perform a "commit work", everything is also fine.
I get a dump on the "commit work" when I put the object in the attribute of the other object.
I have followed the sap help documentation: http://help.sap.com/saphelp_nw04/helpdata/en/06/f23c3d638d11d4966d00a0c94260a5/frameset.htm
Do I need to specify something special in the field after "class identifier".
For the record: The attribute type is an interface.
Kind regards,
Luk
‎2006 Nov 20 12:47 PM
‎2006 Nov 21 6:50 AM
not a direct answer to your question, but check out this weblog, this may be of help to you
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
Regards
Raja
‎2006 Nov 21 8:32 AM
Hey Raja,
I had already seen this blog, but it does not contain "advanced" stuff like reference attributes.
Kind regards,
Luk
‎2006 Nov 23 2:58 PM
Hi all,
I have solved this by implementing the get_ref_by_oid & get_oid_by_ref method in the class agent.
Bye,
Luk