Application Development 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: 

How does ABAP resolve which UNIX file to read

arminpohl-123
Explorer
0 Kudos

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.

1 REPLY 1

kiran_k8
Active Contributor

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.