Skip to Content
-3

Read Excel file from FTP to Internal table

How the excel file look like on FTP server.

Want to read excel file from FTP to internal table the to post some transaction.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    Posted on Dec 11, 2019 at 03:59 PM

    Hi ABAP LEARNER

    Try with below FM, also refer to class CL_ISH_AT_EDI_FILETRANSFER & method READ_FILE to find out how to use it.

    call function 'FTP_SERVER_TO_R3'
    

    tmp.png (232.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2019 at 09:14 AM

    Hi ABAP LEARNER

    Try with function module 'TEXT_CONVERT_CSV_TO_SAP' with field separator as '#' / ';' (CSV) to convert it to Internal table data.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2019 at 11:07 AM
    -1

    Mr. Thanga Prakash Thanga Raj

    Thanks for your support. it will work and data will be in final internal table for further processing.

    My dought is that is this the way to get excel files from server into internal table.

    Or there is some function modules that will directly upload data into internal table.

    like 'FTP_SERVER_TO_R3' ,'gui_download ' .Which is the best solution to get this.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2019 at 11:22 AM
    -1

    Thanks Mr. Thanga Prakash Thanga Raj..

    Excel file send and received. From SAP to FTP and FTP to SAP internal tab.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 14 at 08:36 AM
    -1
    Add a comment
    10|10000 characters needed characters exceeded

    • Ashish Goel If you have something like this in your CSV file:

      Last name,First name,Street,City
      Doe,John,fourth avenue,New York
      Doux,Jeanne,10, rue du café,Paris

      Then it means your CSV file is incorrect. Instead, it should be:

      Last name,First name,Street,City
      Doe,John,fourth avenue,New York
      Doux,Jeanne,"10, rue du café",Paris

      See more information here.

  • Posted on May 16 at 04:53 AM
    -1
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.