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

ws_filename_get

which fm we have to use in ecc 6.0 for ws_filename_get?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 10:16 AM

    we can use this i think

    F4_FILENAME

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 10:18 AM

    Hi,

    Instead of going for a function you can use the Method FILE_OPEN_DIALOG of the class CL_GUI_FRONTEND_SERVICES.

    You just need to call the method using the Pattern button on the application toolbar.

    As far as the function is concerned, u can use F4_FILENAME.

    Regards,

    Himanshu

    null

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 10:18 AM

    try this

    KD_GET_FILENAME_ON_F4

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 10:24 AM

    Hi,

    DATA: BEGIN OF logfile,

    directory(80) TYPE c,

    name(7) TYPE c,

    path TYPE string,

    pc_file TYPE string,

    pc_path TYPE string,

    selection TYPE filetable,

    rc TYPE i,

    action TYPE i,

    no_reload TYPE c VALUE '',

    lines LIKE sy-tabix,

    END OF logfile.

    CALL METHOD cl_gui_frontend_services=>file_open_dialog

    EXPORTING

    initial_directory = logfile-pc_path

    default_filename = '.'

    default_extension = '.'

    CHANGING

    file_table = logfile-selection

    user_action = logfile-action

    rc = logfile-rc

    EXCEPTIONS

    OTHERS = 1.

    READ TABLE logfile-selection INDEX 1 INTO pv_file.

    The above class is used.

    reward if helpful.

    Regards,

    nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 10:33 AM

    hi,,

    use FM 'KD_GET_FILENAME_ON_F4' like this way....

    PARAMETER : FILN_IN TYPE RLGRAP-FILENAME OBLIGATORY.

     CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    * EXPORTING
    *   PROGRAM_NAME        = ' '
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = p_file
    *   STATIC              = ' '
    *   MASK                = ' '
        CHANGING
          FILE_NAME           = FILN_IN
       EXCEPTIONS
         MASK_TOO_LONG       = 1
         OTHERS              = 2.

    and instead of ws_uploas,ws_download use gui_upload and GUI_DOWNLOAD.

    Rewards if helpful.

    Regards

    Gagan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 10:42 AM

    Hi Pawan,

    If u want to use oops,use class <b>CL_GUI_FRONTEND_SERVICES</b> & call method <b>FILE_OPEN_DIALOG</b>.

    Without oops use FM <b>F4_FILENAME</b>

    Regards,

    Hemant

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 10:45 AM

    Hi,

    Refer this code

    &----


    *

    *& Form getfilename1

    &----


    • It displays the f4 help for presentation server file name

    • User can select the file from presentation server

    ----


    *

    • <--P_FILE1 Input file name for presentation server

    ----


    FORM getfilename1 CHANGING p_file1 TYPE rlgrap-filename.

    CALL FUNCTION 'F4_FILENAME'

    EXPORTING

    program_name = sy-cprog

    dynpro_number = sy-dynnr

    IMPORTING

    file_name = p_file1.

    ENDFORM. " getfilename1

    Regards,

    Prashant

    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.