create a table LOOP it on internal table for Header Details
2. with in table create row to display header items
3. create a LOOP after ROW loop it on table for LINE ITEMS 4. with in LOOP in WHERE condition give that common field F1 = header_table-F1. 5. create a ROW with in this LOOP to display line-items