@JohnnyPabian , That would have worked fine for me if I didn't also have other data i was importing into the invoice header from the ODBC data source I'm using since importing into SO_AutoGenerateInvoices only has two fields you can import data into, SalesOrderNo and BatchNo.
However, depending on the end user and how you are getting the list of sales orders that need to be invoiced, it may be simpler and less steps to just have them use the Auto Generate Invoices Selection task to invoice.
The VI perform I posted uses the same method that the SO Invoice Entry task uses to copy the lines so it just eliminates one more step from the end user's process as they won't have to run the import and then proceed with the Auto Generate Invoices Selection process.