FIELD-SYMBOLS:
<source> TYPE any,
<target> TYPE any.
DATA lo_struct TYPE REF TO cl_abap_structdescr.
lo_struct ?= cl_abap_typedescr=>describe_by_data( ls_source ).
LOOP AT lo_struct->components INTO DATA(ls_comp).
ASSIGN COMPONENT ls_comp-name OF STRUCTURE ls_source TO <source>.
IF sy-subrc <> 0 OR <source> IS INITIAL.
CONTINUE.
ENDIF.
ASSIGN COMPONENT ls_comp-name OF STRUCTURE ls_target TO <target>.
IF sy-subrc = 0.
<target> = <source>.
ENDIF.
ENDLOOP.