Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get file names in a directory but in background.

Hi Friends,

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?

Thanks.

Tags:
Former Member
Former Member replied

Hi Nkara,

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.

Kind regards

Henner

<b>Reward if helpful</b>

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question