Skip to Content
0
Former Member
Jun 06, 2011 at 10:03 AM

merge two structures to one structure in run-time

2313 Views

HI All,

I'm having two structures type any and i want to merge them to one structure

which will have the both fields ,while searching in the forum there is option

to use the RTTI options (mainly for tables issues ) ,i try it but without success .

cl_abap_typedescr

cl_abap_structdescr

This is the structures

FIELD-SYMBOLS: <ls_attr_structure> TYPE any,
                 <ls_key_struct>          TYPE any,
                 <ls_merge> type any.


DATA: lo_attr_struct TYPE REF TO data,
        lo_attr_key TYPE REF TO data.


 ASSIGN:lo_attr_struct->* TO <ls_attr_structure>,
         lo_attr_key->* TO <ls_key_struct>.

now i want that <ls_merge> will have the both structures fields .

Thanks,

Joy

Edited by: Joy Stpr on Jun 6, 2011 1:16 PM