Skip to Content
avatar image
Former Member

GUI_UPLOAD or KD_GET_FILENAME_ON_F4

Hi All,

Could you please tell me which function module is very useful for F4 help.

REgards,

AMAR

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 15, 2009 at 12:13 PM

    KD_GET_FILENAME_ON_F4

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 15, 2009 at 12:13 PM

    Hello,

    You cannot use 'GUI_UPLOAD' for F4 help. You can use 'KD_GET_FILENAME_ON_F4' for F4 help. To let you know, internally KD_GET_FILENAME_ON_F4 uses 'WS_FILENAME_GET' which is obsolete.

    You can use the method FILE_OPEN_DIALOG of class CL_GUI_FRONTEND_SERVICES.

    BR,

    Suhas

    Edited by: Suhas Saha on Apr 15, 2009 2:16 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2009 at 12:15 PM

    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'

    • EXPORTING

    • PROGRAM_NAME = SYST-REPID

    • DYNPRO_NUMBER = SYST-DYNNR

    • FIELD_NAME = ' '

    • STATIC = ' '

    • MASK = ' '

    CHANGING

    file_name = P_FILE

    • EXCEPTIONS

    • MASK_TOO_LONG = 1

    • OTHERS = 2

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2009 at 12:16 PM

    hi,

    hi for F4 value for local directory. even you can use 'F4_FILENAME'

    ************************************************************************
    at selection-screen on value-request for p_file.
    ************************************************************************
    call function 'WS_FILENAME_GET'
        exporting 
            def_filename = space
            def_path = p_file           "File name
            mask = ',*.*.'
            mode = 'O'
            title = title
        importing
            filename = p_file     ""File name
            rc = dummy
        exceptions
            inv_winsys = 04
            no_batch = 08
            selection_cancel = 12
            selection_error = 16.
     
    if sy-subrc ne 0.
        message i872(5g).
    endif.
     
    
    

    Regards,

    Prabhudas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2009 at 12:17 PM

    hiii,

    GUI_UPLOAD Fm is used to take data from text file or excel sheet to internal table while KD_GET_FILENAME_ON_F4 is use for gettin help file on a particular field.

    Regards,

    Anil N.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2009 at 12:30 PM

    Hi ,

    FM s used for F4 help,

    1. KD_GET_FILENAME_ON_F4

    2. F4_FILENAME

    Also u can use class CL_GUI_FRONTEND_SERVICES

    regards,

    ajit

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 15, 2009 at 12:36 PM

    hi please search before posting ..

    look at this..

    f4-on-parameter-and-ask-file-name-from-presentatio

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 15, 2009 at 12:52 PM

    hi ,

    use both FM to upload the data .

    check this link

    function-module.

    ~linganna

    Add comment
    10|10000 characters needed characters exceeded