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: 

FTP Server

Former Member
0 Kudos

Hi Friends,

i have a new requirement with FTP. presently i am using BDC to upload data. For that user going to put data in FTP server. I have to get data from FTP to Use my BDC. if the BDC is successful i have to keep this successful data file into a folder named ' Processed' in FTP server, if BDC is failed i have to keep the file into folder 'Failed' in FTP server.

Please suggest me how to do it.

Kumar

1 REPLY 1

Former Member
0 Kudos

Hi,

for your requirement you may need to use a scenario,

wherein you schedule a periodic job which would run a

program that would connect to the FTP and get the file

then Process it using BDC, get the successfully

processed records into an internal table and place it into

a file (such as txt or csv, etc).

Finally, you program will again connect to the FTP to

place the file in the reqd. folder and disconnect from the FTP.

you can use the following function module to communicate with FTP

FTP_CLIENT_TO_R3

FTP_COMMAND

FTP_COMMAND_LIST

FTP_CONNECT

FTP_COPY

FTP_DISCONNECT

FTP_R3_TO_CLIENT

FTP_R3_TO_SERVER

FTP_SERVER_TO_R3

Regards,

Samson Rodrigues.