Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

cl_gui_frontend_services=>file_save_dialog

Former Member
0 Kudos

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

5 REPLIES 5

former_member223537
Active Contributor
0 Kudos

Hi Neha,

There is a parameter

fullpath    = fullpath

Pass this value to GUI_DOWNLOAD

Best regards,

Prashant

0 Kudos

Fullpath does not give the extension [.xls] of the file u select in the dialog box

0 Kudos

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.

Former Member
0 Kudos

call method CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG

EXPORTING

file_filter = filefilter

CHANGING

filename = filename

path = path

fullpath = fullpath

user_action = user_action.

Former Member
0 Kudos

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.