ABAP 内表导出到excel

时间:2022-06-25 09:21:18
  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
          .