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

copy itab

Former Member
0 Likes
777

Could any one give code to copy data(all rows) from internal table to another internal table of same structure.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
755

hi

Itab1[] = itab2[].

Regards

Kiran.

7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
755
itab1[] = itab2[]
Read only

Former Member
0 Likes
756

hi

Itab1[] = itab2[].

Regards

Kiran.

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
755

hi,

Its pretty simple, as

it1 [ ] = it2 [ ].

Regards

Vadi

Edited by: Vadivelan B on Feb 19, 2008 1:00 PM

Read only

Former Member
0 Likes
755

Somany methods ,

but best one is

ITAB1[] = ITAB2[].

Regards,

Ajay

Read only

Former Member
0 Likes
755

Hi,

if u want to copy record by record then do like this

loop at itab1 into itab2.

append itab2.

endloop.

if u want to copy all the records at once.

itab2 [ ] = itab1 [ ].

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 5:15 PM

Read only

Former Member
0 Likes
755

Hi Sunil,

You can use this .

APPEND LINES OF i_tab2 TO i_tab1.

Regards,

Chitra

Read only

Former Member
0 Likes
755

Hi,

You can use the below code to copy:



itab2 [] =  itab1 [].

or

append lines of itab1 to itab2.

Thanks,

Sriram POnna.