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

Re: Move file from one folder to another floder in application server

Former Member
0 Likes
1,048

Hi all,

i want function module to move file from one folder to another floder in application server.

Thnaks

Satish chekuri.

Hi all,

i want function module to move file from one folder to another floder in application server.

Thnaks

Satish chekuri.

3 REPLIES 3
Read only

Former Member
0 Likes
623

Dont think there is a direct function module to do this. You could read the contents of the file and transfer it to the new folder and delete the source file.

Vikranth

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
623

ARCHIVFILE_SERVER_TO_SERVER

Also delete the file from source path ( delete dataset <path> ) after executing this fm

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
623

One way to do this would be:

1. In SM69, declare an external command (e.g., mv command is used in Unix to move file from one directory to another).

2. Call the function module 'SXPG_CALL_SYSTEM' to execute this command.

Check this thread for details :

BR,

Suhas

Edited by: Suhas Saha on Jun 16, 2010 3:02 PM