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

Internal table

Former Member
0 Likes
582

Hi gurus,

I have a small doubt, I want to copy what I have from one of my internal table to other, can you tell me how to do that.

will this work

Append it_tab into it_temp.

Thanks

Rajeev Gupta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
561

Create another internal table same as first and assign the body of the internal table.

ITAB1[] = ITAB[].

ashish

4 REPLIES 4
Read only

Former Member
0 Likes
562

Create another internal table same as first and assign the body of the internal table.

ITAB1[] = ITAB[].

ashish

Read only

Former Member
0 Likes
561

Hi Rajeev,

do this way

ITAB1[] = ITAB2[]

the above statment works provided the intenal tables are of same structure

Read only

Former Member
0 Likes
561

The other way to do is


loop at itab1.

 move-corresponding fields of itab1 to itab2.
 append itab2.
 clear itab2.
endloop.

Read only

Former Member
0 Likes
561

If you would simply do F1 on APPEND, you would see:

APPEND LINES OF itab1 [FROM idx1] [TO idx2] TO itab2.

Rob