Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM to get app SERVER files

rodrigo_paisante3
Active Contributor
0 Kudos

Hi all,

please, what is the FM to get app server directory and files??

I have to browse the server, not my local machine.

The program will run background.

Regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use EPS_GET_DIRECTORY_LISTING to get a list of files in a directory, also you can especify a wildcard.

If you have to get a file from the application server and download to a local pc you have tu open the file with open dataset, read each record and append them in an internal table. Later you can download the internal table with gui_download. This procedure can't run in background!!

Carlos

5 REPLIES 5

naimesh_patel
Active Contributor

Former Member
0 Kudos

You need to use Open dataset statement to open the file.

regards,

Advait

Former Member
0 Kudos

You can use EPS_GET_DIRECTORY_LISTING to get a list of files in a directory, also you can especify a wildcard.

If you have to get a file from the application server and download to a local pc you have tu open the file with open dataset, read each record and append them in an internal table. Later you can download the internal table with gui_download. This procedure can't run in background!!

Carlos

amit_khare
Active Contributor
0 Kudos

check FM RZL_READ_DIR

rodrigo_paisante3
Active Contributor
0 Kudos

Thanks for your question, the spec was changed to connect FTP server... lol