Skip to Content
avatar image
Former Member

FTP_COMMAND in order to get files list at FTP address

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 07, 2009 at 07:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2009 at 10:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Dec 23, 2009 at 12:33 PM

    ss

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 23, 2009 at 12:37 PM

    I used a batch file

    Add comment
    10|10000 characters needed characters exceeded