Application Development 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: 

how to export & import interface type data object to memory

sudhir_manjarekar2
Participant
0 Kudos

Hi experts,

My greetings to all.

we have came across a situation where we need to pass interface type data object to memory

and import same from memory.

DATA context TYPE REF TO if_timecontext.

its not possible with regular export statement.

is their any other way to do it?

Thanks in advanced,

Sudhir

3 REPLIES 3

Former Member
0 Kudos

Firstly what i think you have to assign memory area using <mem_area> to your data object and and then can reald using field-symbol i.e can refer to ur assigned memory area.

ASSIGN statement can be used.

I hope this would be clear to you

Thanks

saurabh

Sandra_Rossi
Active Contributor
0 Kudos

I would have said that you could do it using XML serialization and then shared memory, or with shared objects, but IF_TIMECONTEXT is missing the required IF_SERIALIZABLE_OBJECT interface.

So, I guess the only solution is to instantiate again (or any other workaround you could imagine).

0 Kudos

Thank you saurabhmani & sandra.

@ saurabhmani : i tried assigning object context to memory (field-symbol) and exporting it to memory, but got runtime error.

@sandra : XML serialization & shared object concept sounds intresting but as you already checked that interface IF_TIMECONTEXT is missing the required IF_SERIALIZABLE_OBJECT interface.

Istead of exporting context data object to memory we tried different approch and it worked out for our requirement

Regards

Sudhir