12-02-2009 4:26 AM
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 ???
12-02-2009 4:30 AM
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
12-02-2009 4:30 AM
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
12-02-2009 4:33 AM
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.
12-02-2009 4:44 AM
Hi,
please avoid asking such basic questions on this forum. Go through the rules for posting questions in this forum.
Regards,
Bhavesh.