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: 

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

ram_sahoo
Participant
0 Kudos

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.



Thanks.

2 REPLIES 2

0 Kudos

Hi Ram,

Can you tell me whether your structure of <dyn_table> and <gt_dyntab> are same or different ?

Regards,

Swaroop

0 Kudos

Moderator message: why is your question identical to this one http://scn.sap.com/message/15756146#15756146 by http://scn.sap.com/people/pradeepkumar.padhy

Note: failure to address my question adequately may result in further moderation action.

Edit: I know why. It's because the question was rejected already three times. Refusal to accept moderator decisions can result in your account being suspended. Do not do this again. If you disagree with a moderator decision, take it to http://scn.sap.com/community/support