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.
Request clarification before answering.
Hi Sridhar,
try using the FM TMP_GUI_DIRECTORY_LIST_FILES. It might work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.