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: 

Internal table

Former Member
0 Kudos

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

Former Member
0 Kudos

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

ITAB1[] = ITAB[].

ashish

4 REPLIES 4

Former Member
0 Kudos

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

ITAB1[] = ITAB[].

ashish

Former Member
0 Kudos

Hi Rajeev,

do this way

ITAB1[] = ITAB2[]

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

Former Member
0 Kudos

The other way to do is


loop at itab1.

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

Former Member
0 Kudos

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

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

Rob