cancel
Showing results for 
Search instead for 
Did you mean: 

How to send object references between systems using RFC

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

uwe_schieferstein
Active Contributor
0 Kudos

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

Former Member
0 Kudos

That's right.

This was my Problem.

I didn't implement the interface IF_SERIALIZABLE_OBJECT

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello Raja,

the XML-Stream has no values from the attributes of the instance.

And i have problems to deserialize the object. The destination object contains "**illegal reference**"

Do you have any idea.

greetings

Stefan

athavanraja
Active Contributor
0 Kudos

can you post the code here, so that we can check whats going wrong.

Regards

Raja