HI,
Make sure you refer the inserted table again for final table once you are done with copying the row first time. Internal table is not getting refreshed, that should be the problem. If you put breakpoint and check the final internal table getting referred, you can find this.