which one is efficient in following command to copy data
from one itab1to another itab2 . both itab table has same
structure.
1. move itab1 to itab2
2.move corresponding field of itab1 to itab2
3. itab2[] = itab2[]
4.appends line of itab1 to itab2..
Answers were Sorted based on User's Feedback
Answer / hariabap
option 3 best if both internal tables structure are same.
i.e itab2[] = itab1[].
Is This Answer Correct ? | 11 Yes | 1 No |
To move all entries from one internal table to another
which has the same structure use the following statement:
ITAB2[] = ITAB1[].
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / raghu
option 3 is the best to copy data ie
itab2[] = itab1[].
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sachin sharma
option 1 OR 3 will best .
Answere 2 is not appreciate b'coz in move corresponding for
every field it will check 2 i_tab every time and then place
data .
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / arun s
If structure is not different, it's better to go with 1st
or 3rd option. Both are same. Normally we have to go for
append when structure is different.
Is This Answer Correct ? | 1 Yes | 0 No |
i think choise 1 is right ... most said itab2[] = itab2[]...
here both the internal table name is same , more over this
symbol ' [] ' indicates to copy only the body of the
internal table .
thank you.
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / anuraj singh rana
appends line of itab1 to itab2.
This is the best way do the thing.
THANKS ...
Is This Answer Correct ? | 0 Yes | 5 No |
Can I Get the field name's of mara table.
Define database layer? : abap data dictionary
where u can find user exists? how to activate user exists?
where can i get free study material for dialog programming.
What is dynpro? what are its components ?
What are subroutines? : abap modularization
How to add more than one message to one idoc? Tell me Process
How to same internal table in same functional module?
how to find the driver program of a script without touching its print program?
4 Answers Cooperp, Genpact, Sony,
what is the use of SLIS type pool in alv reports?
How will you define posting procedures?
Workbench request are client dependent or client independent