In order to repeat a segment with different data coming from the same file, follow these steps:
- Go to Field mapping and conversion rules
- Click on "Extras" (menu bar) > Layout and check "Processing time"
- At the end of your segment, you will see a field called "__END_OF_RECORD__" having the ABAP statement "transfer_record." After that code, you need to enter the mapping for each field of your second segment (you can copy-paste code from the previous fields and simply change the source field (the one from your flat file).
- Add another "transfer_record." statement after your code.