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

about internal table copy

Former Member
0 Likes
495

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
Read only

Former Member
0 Likes
463

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
Read only

Former Member
0 Likes
464

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

Read only

Former Member
0 Likes
463

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.

Read only

Former Member
0 Likes
463

Hi,

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

Regards,

Bhavesh.