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

FM for Download

Hi guys,

I have a requirement wherein i need to download data from my internal table in a file on the desktop of the user who is running it Atuomatically, the user will not provide any filepath. Can any one inform me about the Function Module for the same.

Thanks and regards,

Riya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 12:57 PM

    Hi,

    You can use GUI_DOWNLOAD function module and describe a default path in that.

    Regards,

    Pankaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 12:59 PM

    Download internal table to presentation server file(PC)

    DATA: ld_filename TYPE string,

    Pre version 4.7 declaration e_file like rlgrap-filename.

    DATA: begin of it_datatab occurs 0,

    row(500) type c,

    end of it_datatab.

    call function 'GUI_DOWNLOAD'

    exporting

    filename = ld_filename

    filetype = 'ASC'

    tables

    data_tab = it_datatab[]

    exceptions

    file_open_error = 1

    file_write_error = 2

    others = 3.

    Download internal table to presentation server file(PC)

    Separating fields/columns by a tab

    DATA: ld_filename TYPE string,

    Pre version 4.7 declaration e_file like rlgrap-filename.

    DATA: begin of it_datatab occurs 0,

    col1(50) type c,

    col2(50) type c,

    col3(50) type c,

    etc....

    end of it_datatab.

    CALL FUNCTION 'GUI_DOWNLOAD'

    EXPORTING

    filename = ld_filename

    filetype = 'ASC'

    APPEND = 'X'

    write_field_separator = 'X'

    CONFIRM_OVERWRITE = 'X'

    TABLES

    data_tab = it_datatab[]

    EXCEPTIONS

    file_open_error = 1

    file_write_error = 2

    OTHERS = 3.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 01:11 PM

    Hi,

    GUI_DOWNLOAD or WS_DOWNLOAD will suffice your need.

    Put the path in the program it self.

    PS : WS_DOWNLOAD is not recommeneded as it is obsolete.

    Regards,

    Lalit Kabra

    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.