Question: how to convert text file to excel in sap abap?
Answer: Call to Function F4_FILENAME: This function will help select the Excel file from your local driver.
Call to the magical standard SAP? TEXT_CONVERT_XLS_TO_SAP. Look above for the Function? ... 
Display Excel content with a sample Write Structure. Do whatever you want with the data.