Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module f4_filename

Former Member
0 Likes
10,243

what is the purpose of function module 'F4_FILENAME' . and how to use it . please answer my questio n .

4 REPLIES 4
Read only

Former Member
0 Likes
4,602

<removed_by_moderator>

Edited by: Julius Bussche on Sep 24, 2008 12:56 PM

Read only

Former Member
4,602

Hi,

The actual purpose of this Fm is to be able to open a file select dialog box (whose default location is exported using the field_name parameter), whereby you may choose a specific file from your local system and returns with the absolute address of the selected file as an importing parameter to the calling program.

eg:

CALL FUNCTION 'F4_FILENAME'

    EXPORTING

      program_name  = sy-repid

      dynpro_number = sy-dynnr

      field_name    =  <set the default folder in the file select dialog box >

    IMPORTING

      file_name     = p_file_name.

ENDFORM.     

Note: now p_file_name will contain the absolute address of the selected file which we may use in any way in our programs.

Read only

FredericGirod
Active Contributor
0 Likes
4,602

Hi,

I put this function in an event on a parameter for a filename to help a user to find the location in the computer

Fred    

Read only

Former Member
0 Likes
4,602

You can use this fm for a windows-help of a field-file