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

Reading file names from application server

Former Member
0 Likes
590

Hi,

I am using the function module "EPS_GET_DIRECTORY_LISTING" to get the list of files in a folder on the application directory. How ever i am not able to achieve this. Can any one tell me if this function module is used to get the list of files only from a particular directory or can file names from any directory on the application be got ?

Regards,

Vignesh

Hi,

I am using the function module "EPS_GET_DIRECTORY_LISTING" to get the list of files in a folder on the application directory. How ever i am not able to achieve this. Can any one tell me if this function module is used to get the list of files only from a particular directory or can file names from any directory on the application be got ?

Regards,

Vignesh

3 REPLIES 3
Read only

Former Member
0 Likes
558

Hi,

Try by using this class - cl_gui_frontend_services

rewr if usfl

Read only

amit_khare
Active Contributor
0 Likes
558

Hi,

Use FM RZL_DIR_READ instead. its easy and effective to use.

Regards,

Amit

Read only

former_member210123
Active Participant
0 Likes
558

FILE_GET_NAME_USING_PATH,

EPS_GET_DIRECTORY_LISTING

/SAPDMC/LSM_F4_FRONTEND_FILE

OPEN DATASET <Path / filename> FOR INPUT IN TEXT MODE...

if sy-subrc eq 8, then the file does not exist on the application server.