Get file names in a directory but in background.
My desire is get file names in a network directory, not on application server directory. How can I get the given network directory files names?
right now i'm not havin access to the system, i can check monday afternoon.
But try this.
i_files is just an internal table with one field for the filename.
Use SE11 and search a rollname like path, file.
Take a field that has length 128 (usually is long enough, if not take one with 256 ) and is type char.
Then you code:
data: begin of i_files occurs 0,
filename type <the_fieldname_you_found_char_128>.
data: end of i_files.
p_path is your pathname usually 128 is also long enough.
parameters:p_path(128) deault '/your_paht/'.
This should work, the -sys is just for the called C-routine relevant.
Use it the way i suggested.
<b>Reward if helpful</b>