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

Objet Serialization

Former Member
0 Likes
577

Hi,

I am new to SAP and learning ABAP programming.

I wonder how I could serialize an object (belonging to a class) using a transformation which would use methods to access the "fields" of the object instead of accessing them directly. Is it clear ?

I am also interested in any material related to classes serialization.

Sincerely,

Olivier Matt

Message was edited by: Olivier Matt

3 REPLIES 3
Read only

oliver
Active Contributor
0 Likes
519

Hi Oliver;)

in ABAP you can do object persistence, that means there is a service that cares about saving the state of an ABAP object to the db and restores it when you want to access it again. You'll find the documentation here:

http://help.sap.com/saphelp_erp2005/helpdata/en/f5/a36828bc6911d4b2e80050dadfb92b/frameset.htm

But because SQL is well integrated in ABAP normally i would do all the CRUD stuff in the class by myself because it can be done easy and fast.

ABAP is a strange world if you try to get into it for the first time. Maybe you tell me want you want to do. There are many different ways to solfe certain tasks in ABAP. I'll try to point you to the available documentation.

Regards,

ok

Read only

Former Member
0 Likes
519

Thanks Oliver By the way, my first name is Olivier (with an 2 i).

I am experimenting now something related to object persistence. But my first question was about the way to serialize (and not making it persistant) an object by using methods to access its data.

Message was edited by: Olivier Matt

Read only

Former Member
0 Likes
519

Hi Olivier,

I'm not the OO expert, but perhaps this weblog could help you so serialize the attributs of an object:

<a href="/people/patrick.baer/blog/2005/02/24/abap-serialization--part-i-quick-n-easy Serialization - Part I: Quick-n-easy</a>

<a href="/people/patrick.baer/blog/2005/03/01/abap-serialization--part-ii-serialization-of-arbitrary-data Serialization - Part II: Serialization of arbitrary data</a>

Regards,

Stefan