Skip to Content

How does ABAP resolve which UNIX file to read

Apr 24, 2017 at 09:42 PM


avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Kiran K Apr 25, 2017 at 05:14 AM


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.


10 |10000 characters needed characters left characters exceeded