12-08-2008 11:58 AM
hi,
Kindly let me know how do i pass the file type choosen useing cl_gui_frontend_services=>file_save_dialog to the cl_gui_frontend_services=>gui_download
i mean if i want to save the file in excel format i will give file name as" test "and in the below tab of file type i will select .xls file in the pop up generated by cl_gui_frontend_services=>file_save_dialog.
so where this file type information is obtained in cl_gui_frontend_services=>file_save_dialog
12-08-2008 12:01 PM
Hi Neha,
There is a parameter
fullpath = fullpath
Pass this value to GUI_DOWNLOAD
Best regards,
Prashant
12-08-2008 12:07 PM
Fullpath does not give the extension [.xls] of the file u select in the dialog box
12-08-2008 12:13 PM
hi..Check this one
CALL METHOD CL_GUI_FRONTEND_SERVICES->file_save_dialog
EXPORTING
default_extension = 'DOC'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name Filename
path = v_path path without file name
fullpath = v_fullpath Full path including file name
user_action = v_uact.
12-08-2008 12:04 PM
call method CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
file_filter = filefilter
CHANGING
filename = filename
path = path
fullpath = fullpath
user_action = user_action.
12-08-2008 12:09 PM
LV_FILENAME TYPE STRING,
LV_FULLPATH TYPE STRING,
LV_PATH TYPE STRING,
LV_ACTION TYPE I,
LV_FILE TYPE STRING,
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = 'Please select the location'
DEFAULT_EXTENSION = 'PDF'
DEFAULT_FILE_NAME = LV_FILE
FILE_FILTER = '*.PDF'
CHANGING
FILENAME = LV_FILENAME
PATH = LV_PATH
FULLPATH = LV_FULLPATH
USER_ACTION = LV_ACTION
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
OTHERS = 3.