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

Renaming Files on server

Former Member
0 Likes
562

Hi Gurus

Do someone knows if there is a way to rename files on a server?

Or if theres a function module to do that?

Or if a transaction to do that exists?

Thanks in advanced

Emmanuel Rebolledo

2 REPLIES 2
Read only

Former Member
0 Likes
453

HI do u mean server in the sence app server.

in this case i think we need to do by coding only.like copy the existing file with different name and delete the old file.

for whihc we had abap statements like open dataset,transfer and deletion of the file .

babita

Read only

Former Member
0 Likes
453

Hi Emmanuel,

You have different ways in order to rename your files on the server :

1 - you can use report RSBDCOS0 under Unix and send Unix command (for instance mv file1 file2)

2 - you can use FM ARCHIVFILE_SERVER_TO_SERVER which copy Sourcepath file into Targetpath file

3 - you can code it with ABAP commands like OPEN DATASET / TRANSFER / CLOSE DATASET

...

I hope this will help you!

Samuel