转载:http://blog.csdn.net/wren2004/article/details/5369758
CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
EXPORTING
* WINDOW_TITLE =
DEFAULT_EXTENSION = 'TXT'
* DEFAULT_FILE_NAME =
* WITH_ENCODING =
* FILE_FILTER =
* INITIAL_DIRECTORY =
* DEFAULT_ENCODING =
IMPORTING
FILENAME = v_filename
* PATH =
* FULLPATH =
* USER_ACTION =
* FILE_ENCODING =
.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = v_filename
TABLES
data_tab = gt_txt_o " 要导出的内表
EXCEPTIONS
OTHERS = 1.