Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Process CSV-Files dynamically

Former Member
0 Likes
311

Hi all,

I need to process CSV-Files dynamically, i.e. not using a static order for splitting the values of the lines into the according variables, but determining the mapping dynamically using a header line in the CSV-File.

For instance:

#dcu;item;subitem

827160;5111001000;3150

So if the order in the the CSV-File changes to e.g.

#item;dcu;subitem

5111001000;827160;3150

the program should fill the corresponding variables (ls_upload-dcu, ls_upload-item, ls_load-subitem) dynamically without the need to change the code.

If anyone has a solution, please let me know.

Thanks,

Thomas

1 REPLY 1
Read only

Former Member
0 Likes
289

Try to use variants concepts