2006 Oct 05 11:41 AM
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
2006 Oct 05 11:42 AM
2006 Oct 05 12:58 PM
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
2006 Oct 05 2:00 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |