Hi,
1) first declare new internal table with required fields as like output.
2)Put the loop for first itab1 and populate the fields in new internal table
3) similarly read and populate the itab2 and itab3 with key condition .
4) Before endloop put the append statement.