Skip to Content
0
Former Member
Sep 15, 2006 at 02:16 PM

Get One Column from an internal table without looping

3578 Views

Hi All,

I have a Huge Internal Table with several columns and would like to get Just two columns from it to another internal table that has just two columns.

Something like this:

Table A;
	
Fld1	Fld2	Fld3	Fld4
1	11	21	31
2	12	22	32
3	13	23	33
4	14	24	34
5	15	25	35
6	16	26	36

And the resulting second table after the move.

Table B;

Fld1	Fld2	
1	11	
2	12	
3	13	
4	14	
5	15	
6	16

But as the Table A is huge with about a 100,000 records; Looping through takes up a lot of resources. And

TableA[] = TableB[] doesn't work for me as the Flds have a different structure in the two tables.

Is there any other way to get around this.?

Thanks in advance..!

Jr