cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Can any one tell me if there is a Function module that will display the windows directory path and returns the filenames in the selected folder when F4 help is clicked.Currently I am using

cl_gui_frontend_services=>directory_browse

But please let me know if ther is any function module which gives me the same functionality as the above method does.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi Sridhar,

try using the FM TMP_GUI_DIRECTORY_LIST_FILES. It might work.

Former Member
0 Likes

Hi

Check these codes


selection-screen begin of block b1 with frame .
Parameters File(100) lower case.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
  CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
*     DEF_FILENAME           = ' '
      DEF_PATH               = '*.*'
*     MASK                   = ' '
*     MODE                   = ' '
*     TITLE                  = ' '
    IMPORTING
      FILENAME               = FILE
*     RC                     =
           .

or


PARAMETERS:P_FILE LIKE RLGRAP-FILENAME.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
 EXPORTING
   PROGRAM_NAME        = SYST-CPROG
   DYNPRO_NUMBER       = SYST-DYNNR
  IMPORTING
   FILE_NAME           = P_FILE.