04-24-2017 10:42 PM
we have 100 files all called open_orders_DATE_TIMESTAMP.dat
how does the ABAP pgm resolve to choose which file to process first, second, third etc. Im assuming it's first first out and based on the internal date and time stamp attached to the file itself and nothing to do with actual filename. using open dataset.
04-25-2017 6:14 AM
Armin,
https://archive.sap.com/discussions/thread/739425
How about
1.Fetching all the filesnames from the required directory and
2.then read the time stamp of each of these files and build an itab with the file names sorted based on the timestamp.
3.Then loop this itab and open/read/close dataset within the loop to read the contents of each of the files for further processing.
K.Kiran.