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 a filed occur in several field groups?
difference between step loop and table control?Plz urgent..
3 Answers Accenture, CSD Bangladesh,
How do you write a squential file
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization
what is the functionality of data class?
What is the syntax of packed number?
how to stretch the report size in standard tool bar.
Differentiate between report and dialog program
What are the types of data types in the sap abap?
What are Major differences in Smart forms and Scripts
Describe the difference between macro and subroutine?
how can we get what are the exits available for va01 transaction?