Skip to Content
0
Jun 10, 2020 at 11:55 AM

Choose single file from multiple files in AL11 directory

138 Views

Hi,

In My application server directory, there are multiple files with different time stamps.

My requirement is to load only the latest one and pass it as selection to Infopackage.

I knew, this can be done using

1. Get the list of Files Using FM : EPS_GET_DIRECTORY_LISTING

2. Sort DIR_LIST by descending order. Keep the first file and delete remainng

3. Append this file to P_filename

Anyone has complete syntax ? appreciate your help