‎2006 Jul 18 4:19 PM
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
‎2006 Jul 18 4:39 PM
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
‎2006 Jul 19 8:13 AM
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
‎2006 Jul 19 9:38 AM
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