Skip to Content
0
Former Member
Dec 01, 2006 at 12:39 PM

serialize data to a xstring?

64 Views

hi, is it possible to serialize a bunch of data to an xstring and reconstruct it from there?

a.e.:

DATA: mydata TYPE ANY,

myxstring type xstring.

ZCL_DATA=>get_data( imorting data = mydata ).

??? here i wanna put the data in a xstring, but how ?

??? myxstring = data_to_xstring( mydata )

ZCL_DATA=>save_data( exporting xstring = myxstring ).

...

ZCL_DATA=>load_data( importing xstring = myxstring ).

??? here i wanna restore the data.

??? data = xstring_to_data( myxstring )

ZCL_DATA=>put_data( exporting data = mydata ).

-


the structure of the data should not be lost during this operation, and the data could be of an complex type.

how can i realize this?

thanks ronald