10-13-2008 3:08 PM
Hi Friends,
i am using METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
i want to know the file name selected from the path.
example : c:\folder\file.txt.
here i want to know which file i have selected. if it is a small path then we can use SPLIT command but if the path selected is long with special chareters then?
urget requirement.
regards
Kumar M.
10-13-2008 3:10 PM
You can try FM's:
SO_SPLIT_FILE_AND_PATH
/SAPDMC/LSM_PATH_FILE_SPLIT
DSVAS_DOC_FILENAME_SPLIT
10-13-2008 3:10 PM
You can try FM's:
SO_SPLIT_FILE_AND_PATH
/SAPDMC/LSM_PATH_FILE_SPLIT
DSVAS_DOC_FILENAME_SPLIT
10-13-2008 3:14 PM
Hi,
Use the FM: CH_SPLIT_FILENAME to split the file path...
Regards
Shiva
10-13-2008 3:23 PM
u can use this function...
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = 'C:\'
MASK = '*.xls'
MODE = 'O'
TITLE = SY-TITLE
IMPORTING
FILENAME = FILENAME
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
have a nice day...