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: 

about internal table copy

Former Member
0 Kudos

i have to structure a and b

eg

a structure have two element

name(8) type c

age(3) type i.

b structure have three element

id(2) type c

name(8) type c

age(3) type i.

so, i declare two internal table

i want copy b to a ,how to carry out this use easy way ???

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

What do you mean by copy? Just append whatever records avaialble in B to A? If so


loop at it_b.
move-corresponding it_b to it_a.
append it_a.
endloop.

Vikranth

3 REPLIES 3

Former Member
0 Kudos

Hello,

What do you mean by copy? Just append whatever records avaialble in B to A? If so


loop at it_b.
move-corresponding it_b to it_a.
append it_a.
endloop.

Vikranth

Former Member
0 Kudos

HI,

Loop at second internal table into work area .

Move the required fields from second work area to first workarea.

and append work area to first internal table.

loop at t2 into w2.

w1-a1 = w2-a1.

.

.

.

append w1 to i1.

endloop.

Former Member
0 Kudos

Hi,

please avoid asking such basic questions on this forum. Go through the rules for posting questions in this forum.

Regards,

Bhavesh.