cancel
Showing results for 
Search instead for 
Did you mean: 

how to Overwrite the File while Archiving

manikandan_shanmugam3
Active Participant
0 Kudos

Dear All,

Scenario :File to File (Pass through)

client want us to overwrite the existing file while Archive the file in FTP Server.

Regards,

Manikandan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can do this using a ShellScript for archiving.

Can do something like this:

#!/bin/ksh
############################################################################################
############################################################################################

cd $1

ftp -n -v <<%%EOF%%
open $2
user $3 $4
prompt
asci
cd $5
delete $6
mput $6
bye
%%EOF%%

Where, you can pass parameter in SapPI CC as follow:

$1 source directory

$2 ftp destination

$3 $4 user password

$5 destination directory

$6 Filename