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

Moving files in application server

Former Member
0 Likes
603

Hello Everyone,

Is it possible to move all files from one directory to another directory in application server?

My requirement is like this:

I want to move all files present in one directory (Let's say A) to another directory (Let's say B) in application server.

I pick one by one each file from directory A, process it by ABAP program and then wants to move the same file into directory B.

When all the files moved to directory B, directory A should be empty with no files.

Kindly let me know if anyone comes across this scenario.

Waiting reply in anticipation.

Regards,

Tarun

Hello Everyone,

Is it possible to move all files from one directory to another directory in application server?

My requirement is like this:

I want to move all files present in one directory (Let's say A) to another directory (Let's say B) in application server.

I pick one by one each file from directory A, process it by ABAP program and then wants to move the same file into directory B.

When all the files moved to directory B, directory A should be empty with no files.

Kindly let me know if anyone comes across this scenario.

Waiting reply in anticipation.

Regards,

Tarun

3 REPLIES 3
Read only

Former Member
0 Likes
512

Hi

See the FTP commands: check dempo program RFTP*

Max

Read only

Former Member
0 Likes
512

hi,

Get all the files from application server directory using function module <b>EPS_GET_DIRECTORY_LISTING</b>.

To move the file to archive directoryuse FMs <b>'PFL_COPY_OS_FILE'</b>

To Delete <b>'EPS_DELETE_FILE'.</b>

Regards

Sudheer

Read only

andreas_mann3
Active Contributor
0 Likes
512

Hi,

look here:

A.