Question:
hi folks
please tell me the function module name which will display the list of local files (files on presentation server)
scenario: i have 10 files in my desktop. i need a give a chance to user that he able to select the list of files from selection screen
if u do this iam very thankful to you.
regards
vancha
Answer:
Try this code:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
* DEF_FILENAME = ' '
* DEF_PATH = ' '
mask = ',*.*,*.csv.'
mode = 'O'
* TITLE = ' '
IMPORTING
filename = p_file
* RC =
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Hope that helps.
If you don't want your user restricted to a specific type of file, ensure your mask field contains only *.*
_________________
Kind Regards
Rosie Brent
Please remember to search the forum and check the FAQ before posting questions, thank you.
Tuly Idiot most of the time, part-time Guru