Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to move data from dynamic internal table into static internal table.

Hi Experts,

I have move data from dynamic internal table to static internal table means <dyn_table> this is the dynamic internal table having records.These records are i want to move into  gt_dyntab this internal table.gt_dyntab in this internal table two fields having name nad data.The name field is holding internal table name and data field is holding column of internal table, So i want move records into in data field of internal table gt_dyntab.Anybody can help me for this requirement.

CREATE DATA gs_dyntab-data TYPE STANDARD TABLE OF (v_kotab).

APPEND gs_dyntab TO gt_dyntab. CLEAR gs_dyntab.

MOVE-CORRESPONDING <dyn_table> TO gt_dyntab-data.


Not what you were looking for? View more on this topic or Ask a question