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: 

changing server file name

Former Member
0 Kudos

hi

how can i change file name of file that found some directory in the server and i hvae the old name

and the bath.

to change the name of the file just only , not to change what the file contains on it.

thanks,

best regards

Owesat ehsan

6 REPLIES 6

Former Member
0 Kudos

Hi Owesat,

Copy the file to a new file name using Function Module :- ARCHIVFILE_SERVER_TO_SERVER

and once copied successfully delete the old using DELETE DATASET.

Regards,

Darshan Mulmule

former_member194669
Active Contributor
0 Kudos

Please use tranx SM69 and define the external commands, You may execute the batch file by using FM SXPG_COMMAND_EXECUTE.

aRs

former_member156446
Active Contributor
0 Kudos
OPEN DATASET FILENAME FOR INTPUT IN TEXT MODE.

then use

delete dataset <filename>.

former_member181995
Active Contributor
0 Kudos

Former Member
0 Kudos

hi,

you can transfer the file to another file an dthen delete the first file.

open dataset file1 .

read that data set file1 and append its value to internal table

close dataset file1.

then you can

open dataset file2 ,then transfer it_tab to file2.

close dataset file2.

delete dataset file1.

thanks

Former Member
0 Kudos

thanks

alot