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

Internal Tables

Former Member
0 Likes
398

I have an internal table (A) with several columns.

I want to create another internal table (B) consisting of a single

column from table (A).

I loop through the table (A), appending each record to the newly created table (B).

Is there a faster way to do this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi

Declare two internal tables

ITAB and ITAB1 9with just one field)

loop at iTAB.

itab1-f1 = itab-f4.

append itab1.

clear itab1.

endloop.

ther is no other faster way than this.

Reward points if useful

Regards

Anji

3 REPLIES 3
Read only

Former Member
0 Likes
380

Hello,

This is the only way to do it as you did.

Also if the table A is appended from some other table then u can move that column

and append table B.

Regards,

Vasanth

Read only

Former Member
0 Likes
382

Hi

Declare two internal tables

ITAB and ITAB1 9with just one field)

loop at iTAB.

itab1-f1 = itab-f4.

append itab1.

clear itab1.

endloop.

ther is no other faster way than this.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
380

Hello Gregory,

I have also gave the same solution as Mr. Anji said.

May I know thw diffrence bt the two solution.

Vasanth