on 04-06-2006 9:50 AM
Hi all,
I have a question regarding sending object references between systems. I have an RFC enabled function module which reads instances of a class in its source code, now I want to send these instances to the caller system using the exporting parameters of my RFC enabled function module. I guess I must serialize the objects and send them in form of an XML stream, and then deserialize in the caller system, but I do not have a concrete example how I can do that. Has anyone an idea or source code samples how it is done?
Thanks in advance,
Sükrü Birakoglu
Hello Suekrue
You class has to implement the interface <b>IF_SERIALIZABLE_OBJECT</b>.
ABAP follows here the Java trail where you have to implement a corresponding interface to simply "mark" an object as serializable.
Regards
Uwe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for serialization of the istance of the calss
data: abc type ref to <some class>
create object abc .
CALL TRANSFORMATION id
SOURCE model = abc
RESULT XML xmlstream.
to deserialize it
data: abc type ref to <some class>
call transformation id
source xml xmlstream
result model = abc.
Hope this helps.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.