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

f4_filename

hai frnds,

i am having requirement in which i have to accept the file path of application server. i am using the func

f4_filename_server. but when i am selecting the filename the value is not returned in the input box...can anyone help me in this.

Message was edited by: Ateeq K

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 14, 2005 at 06:39 AM

    Hi,

    Check this sample code from Standard program.

    PROCESS ON VALUE-REQUEST.

    FIELD IBIPPARMS-PATH MODULE HELP_PATH.

    MODULE help_path INPUT.

    PERFORM buttons_pressed.

    IF ibipparms-pc = 'X'.

    CALL FUNCTION 'F4_FILENAME'

    EXPORTING

    field_name = 'IBIPPARMS-PATH'

    IMPORTING

    file_name = ibipparms-path.

    ELSEIF ibipparms-unix = 'X'.

    CALL FUNCTION 'F4_FILENAME_SERVER' DESTINATION ibipparms-server

    EXPORTING

    pfad = ibipparms-path

    • IMPORTING

    • FILE_NAME =

    EXCEPTIONS

    no_file_on_server = 1

    OTHERS = 2.

    ENDIF.

    ENDMODULE. " HELP_PATH INPUT

    Kindly reward points by clicking the star on the left of reply,if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi ateeq,

      try this....

      
      data : FILE LIKE RLGRAP-FILENAME.
      
      AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
      
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
             EXPORTING
                  MASK      = '*.csv;*.prn'
                  STATIC    = 'X'
             CHANGING
                  FILE_NAME = FILE.

      regards,

      venu.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 06:32 AM

    hi,

    you write in the event

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      form get_data.

      CALL FUNCTION 'F4_FILENAME_SERVER'

      EXPORTING

      PFAD = '/sapglobal/users/sdmgr/'

      IMPORTING

      FILE_NAME = p_file

      EXCEPTIONS

      NO_FILE_ON_SERVER = 1

      OTHERS = 2

      .

      endform.

      Message was edited by: Hashmatullah

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 07:36 AM

    Hi,

    Try this,

    *Selecting a File, plus inserting default file extension

    parameters: p_file like rlgrap-filename default 'c:\hesa.txt' LOWER CASE.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR i_file.

    CALL FUNCTION 'FILENAME_GET'

    EXPORTING

    def_filename = p_file

    mask = ',*.xls.'

    mode = 'O'

    title = 'Upload File'(078)

    IMPORTING

    filename = p_file

    EXCEPTIONS

    inv_winsys = 1

    no_batch = 2

    selection_cancel = 3

    selection_error = 4

    OTHERS = 5.

    Hope it helps u.

    Thanks&Regards,

    Ruthra

    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.