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

Appending...

Former Member
0 Likes
1,041

Hi All,

I have two internal tables with same structure: I wanted to append from one internal table to the other one. HW to do it..?

One more question is: like how the append is going to happen, I mean each time it’s append only one record or it’s append all the records at a time, pls let me know.

Akshitha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,003

Hi

LOOP AT ITAB1. 
  ITAB2 = ITAB1.
  APPEND ITAB2.
ENDLOOP.

or

LOOP AT ITAB1 INTO ITAB2. 
  APPEND ITAB2.
ENDLOOP.

If you want to appends all records in the same time:

APPEND LINES OF ITAB1 TO ITAB2.

Max

10 REPLIES 10
Read only

Former Member
0 Likes
1,004

Hi

LOOP AT ITAB1. 
  ITAB2 = ITAB1.
  APPEND ITAB2.
ENDLOOP.

or

LOOP AT ITAB1 INTO ITAB2. 
  APPEND ITAB2.
ENDLOOP.

If you want to appends all records in the same time:

APPEND LINES OF ITAB1 TO ITAB2.

Max

Read only

Former Member
0 Likes
1,003

hi

try this way ...

append lines of itab1 to itab2.

it will append the content of itab1 to itab2 in one go.

Regards,

Anil.

Read only

Former Member
0 Likes
1,003
loop at itab1.
move-corresponding itab1 to itab2.
append itab2.
endloop.

Any operation on int table is done record by record...

Read only

Former Member
0 Likes
1,003

Hi

Append lines of ITAB1 to ITAB2.

Thanks

Vijay.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:55 PM

Read only

0 Likes
1,003

If tables have a same structure you can use:

append lines of itab1 to itab2.

regards,

Tomi

Read only

Former Member
0 Likes
1,003

hi,

if u want to append record by record

loop at itab1 into itab2.

append itab2.

endloop.

if u want to transfer all the records at a time

itab2[ ] = itab1[ ].

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:56 PM

Read only

Former Member
0 Likes
1,003

hi,

if u want to append record by record

loop at itab1 into itab2.

append itab2.

endloop.

if u want to transfer all the records at a time

itab2[] = itab2[].

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 3:21 PM

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,003

the best way is

itab2[] = itab1[].

Read only

Former Member
0 Likes
1,003

U can use

APPEND LINES OF ITAB1 TO ITAB2

It append all the lines of tab1 to Tab2

Narendra

Read only

Former Member
0 Likes
1,003

Loop at itab1.

itab2 = itab1.

append itab2.

endloop.