07-22-2010 8:32 AM
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
07-22-2010 12:52 PM
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
07-22-2010 10:34 PM
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).
07-23-2010 7:12 AM
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