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: 

Reg: Classes and memory IDs

Former Member
0 Kudos
84

Hi All,

I have a class which has 5 methods and around 15 attributes.

DATA: lr_document TYPE REF TO zcl_ps_pricing_document,

" Retrieve the Document Object

lr_document = gr_runtime_context->get_document( ).

in this example, lr_document is refferencing to class zcl_ps_pricing_document.

Now Can I export and Import lr_document to memory IDs?

Regards,

Selva M

1 ACCEPTED SOLUTION

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Kudos
50

Hello friend,

please refer to statement in ABAP on line help if you want to export a reference object to ABAP memory.

To export objects, which are referenced by reference variables, use the statement CALL TRANSFORMATION to serialize and export these objects if the class of these objects implements the interface IF_SERIALIZABLE_OBJECT.

Best Regards,

Jerry

1 REPLY 1

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Kudos
51

Hello friend,

please refer to statement in ABAP on line help if you want to export a reference object to ABAP memory.

To export objects, which are referenced by reference variables, use the statement CALL TRANSFORMATION to serialize and export these objects if the class of these objects implements the interface IF_SERIALIZABLE_OBJECT.

Best Regards,

Jerry