‎2008 Jul 29 8:39 AM
what is the purpose of function module 'F4_FILENAME' . and how to use it . please answer my questio n .
‎2008 Jul 29 8:41 AM
<removed_by_moderator>
Edited by: Julius Bussche on Sep 24, 2008 12:56 PM
‎2013 Mar 08 7:52 AM
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.
‎2013 Mar 08 7:56 AM
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
‎2013 Mar 08 2:13 PM