Application Development and Automation 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: 
Read only

Get network directory file list

Former Member
0 Likes
1,026

Hi all,

I want to run a program in batch mode to get the directory file list from a server into the same network of SAP app server.

I did try with those options:

1. Executing the method

cl_gui_frontend_services=>directory_list_files

And it returns the exception not_supported_by_gui

2. Executing the FM

TMP_GUI_DIRECTORY_LIST_FILES

And it returns the exception cntl_error

Trying this options running the program online they work fine, but doesnt work in background mode.

Any ideas on how to do this?

Regards.

Gregory.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

I use Function Module EPS2_GET_DIRECTORY_LISTING

I use Function Module EPS2_GET_DIRECTORY_LISTING

2 REPLIES 2
Read only

Former Member
0 Likes
661

I use Function Module EPS2_GET_DIRECTORY_LISTING

Read only

0 Likes
659

Thanks a lot BreakPoint!

It works fine.

Regards.

Gregory.