10-08-2009 1:18 PM
Hi All
How do I read the contents of a directory on the server periodically to check arrival of new files. Appreciate if any of you can share the approach for the same.
Thanks
Karen
10-08-2009 3:02 PM
There are probably several server-based functions discussed on this forum somewhere, but a common (older) way of doing it is to mimic AL11 functionality by calling the kernel functions directly (used in RSWATCH0). You'll need to convert the MTIME field (seconds since 1970) to a date/time last modified). Search for a function (I'm sure there's one on here somewhere); other wise, just wrap the AL11 code in a function of your own.
10-08-2009 3:02 PM
There are probably several server-based functions discussed on this forum somewhere, but a common (older) way of doing it is to mimic AL11 functionality by calling the kernel functions directly (used in RSWATCH0). You'll need to convert the MTIME field (seconds since 1970) to a date/time last modified). Search for a function (I'm sure there's one on here somewhere); other wise, just wrap the AL11 code in a function of your own.
10-08-2009 3:05 PM
Hello Karen,
I think you can achieve this using user-defined events(SM62).
Also you need the help of BASIS guys, please refer to this [link|http://www.sapfans.com/sapfans/sapfaq/robert.htm] for further details.
BR,
Suhas