You can use the system class CL_ABAP_CORRESPONDING to assign components between structures or between internal tables with dynamically specified mapping rules. Methods are available for simple assignments, assignments of default values, and for using a lookup table.
For more information, see the ABAP Keyword Documentation.