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

Saving object attributes with persistent classes

Former Member
0 Likes
656

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

4 REPLIES 4
Read only

Former Member
0 Likes
605

Can somebody hel me with this?

Kind regards,

Luk

Read only

0 Likes
605

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

Read only

Former Member
0 Likes
605

Hey Raja,

I had already seen this blog, but it does not contain "advanced" stuff like reference attributes.

Kind regards,

Luk

Read only

Former Member
0 Likes
605

Hi all,

I have solved this by implementing the get_ref_by_oid & get_oid_by_ref method in the class agent.

Bye,

Luk