cancel
Showing results for 
Search instead for 
Did you mean: 

writing the file in SRM system to FTP

Former Member
0 Kudos

Hi experts,

The FTP location for the file has been setup with some server,user/password.How do i dump the file in SRM system there.For this requirement, the above data ie., server name,user and password is enough or we need anything else?Can anyone please give me the required coding.

Thanks,

venkatesh.

Accepted Solutions (1)

Accepted Solutions (1)

shivhare
Active Contributor
0 Kudos

Hi,

You can map SRM server directory in to FTP server and you can dump all file in this directory

Thanks

Amit

Former Member
0 Kudos

Hi Amit,

Can you please tell me indetail and provide some coding .

Thanks,

venkatesh.

shivhare
Active Contributor
0 Kudos

Hi ,

I think you want to dump file from FTP server to SRM server some directory (like D:/flatfile ) ...... if i am correct then no need any coding just call for ur network guy and told to him MAP SRM server directroy (d:/flatfile) in to FTP server

Thanks

Amit

Former Member
0 Kudos

Hi Amit,

I need to dump file from SRM server to FTP server.

Thanks,

venkatesh.

shivhare
Active Contributor
0 Kudos

Hi,

you can transfer file from SRM server to FTP server with the help of FTP

go to command promote connect your FTP server

ftp

ftp> open domain.name

Connected to domain.name

220 antigonous FTP server ready.

User (domain.name:(none)): User-Name

331 Password required for user-name

Password: password

230 User user-name logged in.

ftp>

then go particular directory

ftp> cd /web

The following command will copy a file from the local system to the remote system.

ftp> put d:\simoweb1\filename.txt

200 PORT command successful.

Opening ASCII mode data connection for filename.txt

226 Transfer complete

ftp>

This is manual process you can automat this process, create one batch file and execute it in every five minute and when file move successfully to FTP server move one copy to archive folder

Thanks

Amit

shivhare
Active Contributor
0 Kudos

Hi,

The following batch file (UPWIP001.BAT) will start an FTP session and pass the name of a text file (UPWIP001.TXT) to the FTP program. This text file will be processed by the FTP program and each of the statements in the text file will be processed in the sequence they appear.

echo * This batch and text file illustrate the use of FTP to upload an

echo * ASCII file and an EBCDIC or Binary file. The UPWIP001.BAT file

echo * references UPWIP001.TXT that contains...

echo *

echo * user

echo * password

echo * cd /web

echo * pwd

echo * ascii

echo * put d:\simoweb1\cbltxn01.htm

echo * binary

echo * put d:\simoweb1\cbltxn01.zip

echo * quit

echo *

ftp -s:upwip001.txt www.simotime.com

The following is a listing of the contents of the text file (UPWIP001.TXT).

user

password

cd /web

pwd

ascii

put d:\simoweb1\cbltxn01.htm

binary

put d:\simoweb1\cbltxn01.zip

quit

Thanks

Amit

Former Member
0 Kudos

Hi Amit,

I need to run a program on a daily basis that downloads the text file and that file should be sent to FTP server every time it runs.For this can you just explain me the above process and i hope this will solve my problem.

Thanks,

venkatesh.

shivhare
Active Contributor
0 Kudos

Hi,

If you are using windows OS then you can use schedule task manager to fix the schedule when you want to run this program

Thnaks

Amit

Former Member
0 Kudos

Hi Amit,

I am not clear about what u sent.Do we need to create batch fileand how to create it or any existing file(UPWIP001.BAT) is there?

Thanks,

venkatesh.

shivhare
Active Contributor
0 Kudos

Hi

open notepad and write some command and when you save this then give ext like "SRM.bat" and save it

to day evening i will sent some you batch file i think that is helpful for you

Thanks

Amit

Former Member
0 Kudos

Hi Amit,

Thanks a lot.Doesn't it need any interface id and RFC Destination.

regards,

venkatesh.

shivhare
Active Contributor
0 Kudos

Hi,

only bach file do all job not required any inetrface and RFC

Thanks

Amit

Former Member
0 Kudos

Hi Amit,

Can we transfer file from R/3 server to FTP server also using this method.

thanks,

venkatesh.

shivhare
Active Contributor
0 Kudos

Hi,

create batch file .. open notepad and write down blow thing

ftp -i -s:login.txt

move sap.txt D:\srmSERVER

and then create one txt file that name login .txt login file contain below data

open 192.168.0.24

username

password

cd /usr/sap/SRMfile

mput sap.txt

quit

192.168.0.24 is your FTP server IP and /usr/sap/SRMfile is directory of ftp SERVER

Thnaks

Amit

Answers (0)