Skip to Content
author's profile photo Former Member
Former Member

Download a file from URL

Hi Guys,

Every week I have to manually download this file

'http://www.bankofcanada.ca/en/financial_markets/csv/exchange_eng.csv' and process it in R/3.

Is there a function module as GUI_DOWNLOAD

that I can use to automate this download process in my code? If yes, please provide an example

Best Regards.

Mireille

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 04:41 PM

    Check out the classes CL_HTTP_UTILITY, CL_HTTP_CLIENT and CL_HTTP_SERVER and you should be able to find a method which downloads a file directly from URL.

    HTH

    Swapan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 23, 2005 at 07:41 AM

    Hi,

    Check my article on

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/just browsing around.article

    After retrieving the URL, you can save the content (xcontent if it's binary) variable with transfer.

    The only thing that you need to then is schedule the report in a job.

    Eddy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2005 at 03:48 PM

    You could find a program name wget to download from an url. This program run under M$ or Linux/Unix.

    Frédéric

    Add a comment
    10|10000 characters needed characters exceeded

    • Sorry Mireille,

      this is an external program from the GNU. You have to put on your Windows or on your SAP Server and use a function of SAP to call external program.

      I don't know standard program / function of SAP that do this.

      Frédéric

      little add :

      if you want to add external command to SAP use transaction SM69. For example create WGET that call the program wget.

      After you could use the FM SXPG_CALL_SYSTEM

      Message was edited by: Frédéric Girod

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.