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

function module to download using file browser

FUNCTION MODULE TO download the data to a file by choosing the path using file browser.

Add comment
10|10000 characters needed characters exceeded

6 Answers

  • Posted on Sep 28, 2007 at 11:12 AM

    Hi,

    YOu need to use to FM's

    1st ... cl_gui_frontend_services=>get_filename or FILENAME_GET

    2nd .. GUI_DOWNLOAD

    Best regards,

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2007 at 11:15 AM

    In your selection screen use this below logic. Then on the screen a pop up file browser wud appear where you can select the path to download the file.

    PS: If this solves your problem please reward points and mark this question answered.

    Regards.

    ----


    • SELECT-OPTIONS AND PARAMETERS *

    ----


    • Local File path

    SELECTION-SCREEN BEGIN OF BLOCK file_info WITH FRAME TITLE text-001.

    PARAMETER : p_file TYPE ibipparms-path .

    SELECTION-SCREEN END OF BLOCK file_info.

    ----


    • AT SELECTION-SCREEN EVENTS - validate user input *

    ----


    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

    *Pop up screen to select the local file from PC

    CALL FUNCTION 'F4_FILENAME'

    IMPORTING

    file_name = p_file.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2007 at 11:25 AM

    F4_filename --> It will show you a popup for choosing the location where to save the file and will return the path string.

    GUI_DOWNLOAD --> It will download the data into the file on your system.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2007 at 11:55 AM

    hi,

    fm name is ---> gui_file_save_dialog

    if u want i can give u the code also

    Reward point if helpful,

    Thanks,

    Puneet Mehta

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2007 at 12:00 PM

    HI,

    Func mod:- f4_filename just gives the path name You have to use GUI_FILE_SAVE_DIALOG with use F4_FILENAME to get the path

    and pass this path to path parameter in GUI_FILE_SAVE_DIALOG

    Reward Points if helpful,

    Thanks,

    Puneet Mehta

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 28, 2007 at 12:16 PM

    Hi..

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

    CALL FUNCTION ‘F4_FILENAME’ "this will give File popup

    <b>reward if Helpful,</b>

    Add comment
    10|10000 characters needed characters exceeded