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

Object Serialization/Deserialization

alejiandro_sensejl
Active Participant
0 Likes
657

Hello everyone,

is there any implementation of serialization & deserialization (see [Wiki|http://en.wikipedia.org/wiki/Serialization]) in ABAP Objects? We'd like to send instantiated objects via RFC function modules, but the Workbench doesn't allow neither objects (TYPE REF TO) directly nor structures/tables which contain object references.

Thanks in advance and best regards,

Alej

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
519

Hello Alej

Just add the interface IF_SERIALIZABLE_OBJECT to your class. Then you can serialize your instance into an XML stream (CALL TRANSFORMATION) which you can send via RFC.

Regards

Uwe

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
520

Hello Alej

Just add the interface IF_SERIALIZABLE_OBJECT to your class. Then you can serialize your instance into an XML stream (CALL TRANSFORMATION) which you can send via RFC.

Regards

Uwe

Read only

0 Likes
519

Hello Uwe,

thanks for quick reply. I tested the serialization in our ECC6.0 system and it looks like it's working!

Afterwards I tried it in our old 4.6c system (the target for the RFC), but unfortunately the interface IF_SERIALIZABLE_OBJECT doesn't exist there!

Is there a way to deserialize the object again in a 4.6c release?

Read only

0 Likes
519

Hello Alej

I doubt that this is possible.

Regards

Uwe