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_COMMAND in order to get files list at FTP address

Former Member
0 Kudos

Hi all.

I want to get a list of files exist at a specific FTP address.

For that I'm using FTP_CONNECT (OK) and after I want to execute FTP_COMMAND with parameter command = 'ls' in order to recievce the files list in output table data[].

I keep on getting an exception 3 (data_error).

Anyone can help please ?

Thanks,

Rebeka

1 ACCEPTED SOLUTION

Former Member

Hi,

i am also getting the same kind of error at the reading fiel from the FTP..

Could you please suggest me that what you have done to solve this problem..

Thanks

-Arun

5 REPLIES 5

Former Member
0 Kudos

Hi,

Here is the sample code for the same in the link.

http://an-abaper.blogspot.com/2009/10/file-transfer-protocolftp.html

Please close the thread, if solved

Regards,

Aditya

0 Kudos

Hello,

I know by experience the ABAP programmers learn most based on examples.

In every SAP system you have the following FTP example programs, analyze the source code and check how function modules like FTP_CONNECT and FTP_COMMAND work :

RSFTP002 Execute FTP Command

RSFTP003 FTP put / get Test

RSFTP004 FTP Copy

RSFTP007 Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER

RSFTP008 Test FB:FTP_CLIENT_TO_R3 / FTP_R3_TO_CLIENT

RSFTP009 Test FTP put with Verify

RSFTP011 FTP Copy

Success.

Wim

Former Member

Hi,

i am also getting the same kind of error at the reading fiel from the FTP..

Could you please suggest me that what you have done to solve this problem..

Thanks

-Arun

Former Member
0 Kudos

ss

Former Member
0 Kudos

I used a batch file