cancel
Showing results for 
Search instead for 
Did you mean: 

FM for getting list of file in N/W Directory

Former Member
0 Kudos

Hi ,

Any FM which will give me the list of file which are there in the N/W directory and at the same time moving the file in the direcotry to some other N/W directory and the whole process is in Background .......

can any one plz help me out in this ......

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi pawan,

You can use function module EPS_GET_DIRECTORY_LISTING to list the files in a directory of the SAP operating system. You can use function module SXPG_COMMAND_EXECUTE to move the files from one directory to another. To move the files, you probably will have to create a custom command (ZMV for mv command in unix) in t.code SM69.

What does N/W stand for? network?

Mike Vondran

Former Member
0 Kudos

Hi

EPS_GET_DIRECTORY_LISTING will give me list of files which are there in application server i want the list of files which are there in network .

so is also for moving a file from one network directory to another.

Regards.

Former Member
0 Kudos

you can get the n/w directory mounted / shared on application server and then you can use the FM EPS_GET_DIRECTORY_LISTING.

This sharing is similar as you MAP a network drive on your PC.

Thanks,

Ram