Importing an AP Invoice through Visual Integrator where the file being imported has multiple record types

SOLVED

I am working on SAGE 100 v2018 and am trying to import a file containing multiple record types (within the file a record type 01 might be for the header information; record type 05 might be for payment terms; record type 21 might be line information.  Is there a way to import this file containing multiple record types into the AP_InvoiceHeader/Detail tables using Visual Integrator?  The format of the file might look like this:

01|1730782|123453|126734012001|2018-04-16|Non-PO||USD|149.55|7.28|7.28|0.00|2018-05-02|20180502211721115.edi|2018-05-02||SBMT|||0.00|142.27|85|||CHCK||

05|1730782|85|NET30||NET 30 |PlusDays|30|2018-05-16||0|0.000000|

21|1730782|1||0|3.2500|EA|610007|PUR_WATER

21|1730782|3||0|1.0000|EA|450073|HAND SANTZR

01|2581473|698453|126734012001|2018-04-16|Non-PO||USD|149.55|7.28|7.28|0.00|2018-05-02|20180502211721115.edi|2018-05-02||SBMT|||0.00|142.27|85|||CHCK||

05|2581473|85|NET30||NET 30 |PlusDays|30|2018-05-16||0|0.000000|

21|2581473|1||0|6.0000|EA|620007|WATER

Ideally, the VI import would identify two header records for two different vendors (Vendor 1730782 and Vendor 2581473).  The VI import would also identify two line items for Vendor 1730782 and one line item for Vendor 2581473.

Thank you for any assistance.