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: 

Need to put a file on to other FTP server from ABAP program.

Former Member
0 Kudos
856

Hi All,

I got a problem in putting a file on to other FTP server from our ABAP program. Actully i got data in to one internal table. From that i need to put the file on to other FTP(Not SAP) server. That file is Comma delimited text file. I checked many ways, in those i am able to put file in binary format. If we use FTP_R3_TO_SERVER function module, we are able to put the data but data is in single line and i dont understand the size specification. Please let me know how we can solve this problem.

regards,

chandra.

7 REPLIES 7

athavanraja
Active Contributor
0 Kudos
134

check out the following weblog by Thomas Jung for code sample.

/people/thomas.jung3/blog/2004/11/15/performing-ftp-commands-from-abap

Regards

Raja

0 Kudos
134

Hi Durairaj,

I tried in this way also. but as i told you, all records are placing in single line and i am not understanding the size matter when we use FTP_R3_TO_SERVER function module. Can any one solve my problem??

regards,

chandra.

Former Member
0 Kudos
134

Hi All,

Can anyone solve my problem??? I need urgent solution.

regards,

chandra.

0 Kudos
134

Hi Chandrasekhar,

Have a look at standard programs RSFTP007 and RSFTP008.

Thanks

Lakshman

jayanthi_jayaraman
Active Contributor
0 Kudos
134

Hi,

Check this.May be this can help you.

http://www.sap-basis-abap.com/sapac008.htm

http://www.sap-press.de/forum/gp/themaID-5/zeige-12302/thread

Message was edited by: Jayanthi Jayaraman

andreas_mann3
Active Contributor
0 Kudos
134

Hi ,

1st: transfer your itab to appl.-server

2nd: use a program like to transfer data to foreign server

regards Andreas

Former Member
0 Kudos
134

Hi,

use a new field at the end of the line with hex value '0D0A'.

PCLineEnd(2) type x value '0D0A'.

Svetlin