How to convert excel file to text file for sap format

i have one excel file and i want to convert that excel file to text file for sap for please find the attachment and sample format pics


Sample.txt (336 Bytes)
Sample (1).xlsx (10.1 KB)

Hi @sathish_Kumar6 ,

I have built one sample flow base on your scenario
Main.xaml (12.3 KB)

Thanks,
Vinit Mhatre

1 Like

Hi @sathish_Kumar6

=> Use Read Range Workbook to read the excel and store the data in a data table say dt. Make sure to remove Add Headers option.
=> Use the below syntax in Assign activity:

Output= String.Join(Environment.NewLine, dt.AsEnumerable().Select(Function(row) String.Join(vbTab, row.ItemArray.Select(Function(item) item.ToString()))))

=> Use Write Text File to write the data into text file.
Input:


Output:

Workflow:

xaml:
Main.xaml (7.1 KB)

Hope it helps!!
Regards

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.