Skip to Content
avatar image
Former Member

How does ABAP resolve which UNIX file to read

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 25, 2017 at 05: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.

    Add comment
    10|10000 characters needed characters exceeded