The contents of one internal table can be copied to another by using the APPEND LINES or INSERT LINES statement. A more simpler way is to usetany of the following syntax's.
1
2
3
4
5
|
MOVE <itab1> To <itab2>. OR <itab1> = <itab2>. |
These copy the contents of ITAB1 to ITAB2. Incase of internal tables with header line we have to use [] inorder to distinguish from work area. So, to copy contents of internal tables with header line the syntax becomes,
1
|
itab1[] = itab2[]. |