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

Performance Tunning

Former Member
0 Likes
498

Which one is better among the two :

Loop

Move-Corresponding ta2 to tab1

Endloop.

or

Loop.

tab1-f1 = tab2 -f1.

Endloop.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

there is a better option if the structure of both table are same.

itab1[] = itab2[]

4 REPLIES 4
Read only

Former Member
0 Likes
471

second one ofcourse

Read only

Former Member
0 Likes
471

Hi

in the first case you should have the same field names

so if there are are not matching fields it may be problem

where as in second case since you are moving the particular field it is good always

anycase in both cases we have to use append Itab.

Regards

Anji

Read only

Former Member
0 Likes
472

there is a better option if the structure of both table are same.

itab1[] = itab2[]

Read only

Former Member
0 Likes
471

HI

Loop.

tab1-f1 = tab2 -f1.

Endloop.

is the better option to choose

because in the 1st one your useing MOVE CORRESPONDING it is not good to us e