Application Development and Automation 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: 
Read only

Transfer Column data from one internal table to another internal table.

Former Member
0 Likes
865

Hi,

Do you have a code on how to transfer the data from one column of ITAB1 to another column of table ITAB2 . These two table has different structure.

Thanks in Advance!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
781

Hi,

Write like this.

Loop at itab1.

itab2-col1 = itab1-col3 <give the actual column names)

Append itab2 or Modify Itab2.

clear itab2.

endloop.

Reward points if useful

Regards

Anji

5 REPLIES 5
Read only

Former Member
0 Likes
782

Hi,

Write like this.

Loop at itab1.

itab2-col1 = itab1-col3 <give the actual column names)

Append itab2 or Modify Itab2.

clear itab2.

endloop.

Reward points if useful

Regards

Anji

Read only

0 Likes
781

Thanks Anji, but I am looking for other options aside from using a loop.

Read only

Former Member
0 Likes
781

Hi Jim

Look at the code,

loop at itab1.

move itab1-col1 to itab2-coll1.

move itab1-col2 to itab2-coll2.

append itab2.

endloop.

Regards,

Kasi S

Read only

Former Member
0 Likes
781

Solved it on my own

Read only

0 Likes
781

Hello,

Can you share on how you solved this topic?

Regards,

Anna-Liza Sanchez