CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
EXPORTING
* I_FIELD_SEPERATOR =
* I_LINE_HEADER =
I_FILENAME = p_file "文件名
* I_APPL_KEEP = ' '
TABLES
I_TAB_SAP_DATA = t_exportdt “内表
* CHANGING
* I_TAB_CONVERTED_DATA =
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2 .
EXPORTING
* I_FIELD_SEPERATOR =
* I_LINE_HEADER =
I_FILENAME = p_file "文件名
* I_APPL_KEEP = ' '
TABLES
I_TAB_SAP_DATA = t_exportdt “内表
* CHANGING
* I_TAB_CONVERTED_DATA =
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2 .