Application Development 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: 

How to copy/move files between folders in a SAP Application Server?

Former Member
0 Kudos

Hi All,

I had requirement to copy file from one folder to another folder in SAP Application Server. The file should be copied in a single shot not record by record because there will be a unix program running simultaneously which picks up these files for every time frame like 30secs or 60secs.

Is there any function module which copies in a single shot or any function module which invokes unix script in copying files on SAP Application Server?

Any kind of help is appreciated.

Thanks in advance,

Anil.

2 REPLIES 2

Former Member
0 Kudos

You can use SXPG_COMMAND_EXECUTE fm to execute from the program.

refer to this link

Regards,

Santosh

former_member181962
Active Contributor
0 Kudos

Create a FTP Command in SM69 for file copy, if it is not already there.

Then use the function module FTP_COMMAND to execute that command

Regards,

Ravi