<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error when using SAP_CONVERT_TO_XLS_FORMAT. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678330#M1100205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      file_name                 = pathname&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                  = it_result&lt;/P&gt;&lt;P&gt;      fieldnames                = t_header&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_not_exist            = 1&lt;/P&gt;&lt;P&gt;      filename_expected         = 2&lt;/P&gt;&lt;P&gt;      communication_error       = 3&lt;/P&gt;&lt;P&gt;      ole_object_method_error   = 4&lt;/P&gt;&lt;P&gt;      ole_object_property_error = 5&lt;/P&gt;&lt;P&gt;      invalid_pivot_fields      = 6&lt;/P&gt;&lt;P&gt;      download_problem          = 7&lt;/P&gt;&lt;P&gt;      OTHERS                    = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This I think will solve your problem..as it has minimum number of parameters/..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will say, I will give the code for the fieldname header too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 08:29:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-16T08:29:30Z</dc:date>
    <item>
      <title>Error when using SAP_CONVERT_TO_XLS_FORMAT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678328#M1100203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have problem on my report where I would like to export my IT_Result to Excel.&lt;/P&gt;&lt;P&gt;I am using SAP_CONVERT_TO_XLS_FORMAT function module but it return a shortdump and the error code is "RAISE CNTL_SYSTEM_ERROR".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be appreciate if any guys able to help me out &lt;/P&gt;&lt;P&gt;Aish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 08:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678328#M1100203</guid>
      <dc:creator>former_member630306</dc:creator>
      <dc:date>2008-10-16T08:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using SAP_CONVERT_TO_XLS_FORMAT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678329#M1100204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think thier is no expections in the Fm module u need create the expection for that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 08:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678329#M1100204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T08:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using SAP_CONVERT_TO_XLS_FORMAT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678330#M1100205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      file_name                 = pathname&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                  = it_result&lt;/P&gt;&lt;P&gt;      fieldnames                = t_header&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_not_exist            = 1&lt;/P&gt;&lt;P&gt;      filename_expected         = 2&lt;/P&gt;&lt;P&gt;      communication_error       = 3&lt;/P&gt;&lt;P&gt;      ole_object_method_error   = 4&lt;/P&gt;&lt;P&gt;      ole_object_property_error = 5&lt;/P&gt;&lt;P&gt;      invalid_pivot_fields      = 6&lt;/P&gt;&lt;P&gt;      download_problem          = 7&lt;/P&gt;&lt;P&gt;      OTHERS                    = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This I think will solve your problem..as it has minimum number of parameters/..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will say, I will give the code for the fieldname header too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 08:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678330#M1100205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using SAP_CONVERT_TO_XLS_FORMAT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678331#M1100206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use following FM&lt;/P&gt;&lt;P&gt;..here need to pass internal table like i_output in following code..and column of excel sheet will arrange data as per the fields of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_download_data USING p_pfile .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lw_file TYPE string .&lt;/P&gt;&lt;P&gt;                                       " File Path&lt;/P&gt;&lt;P&gt;    lw_file = p_pfile.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                    = BIN_FILESIZE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      filename                        = lw_file&lt;/P&gt;&lt;P&gt;      filetype                        = 'DBF'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPEND                          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   write_field_separator           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                          = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRUNC_TRAILING_BLANKS           = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRITE_LF                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT_MASK                 = p_col_sel&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONFIRM_OVERWRITE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                     = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                     = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRITE_BOM                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRUNC_TRAILING_BLANKS_EOL       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_N_FORMAT                    = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_N_SIZE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_T_FORMAT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_T_SIZE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                      = FILELENGTH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                        = i_output&lt;/P&gt;&lt;P&gt;      fieldnames                      = i_final&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error                = 1&lt;/P&gt;&lt;P&gt;      no_batch                        = 2&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer         = 3&lt;/P&gt;&lt;P&gt;      invalid_type                    = 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 08:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678331#M1100206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T08:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using SAP_CONVERT_TO_XLS_FORMAT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678332#M1100207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  Nikita Jain,&lt;/P&gt;&lt;P&gt;It able to generated excel but it missing columns.. kind of truncated as my report it have numeroussssss columnsssss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-sap-convert-to-xls-format/m-p/4678332#M1100207</guid>
      <dc:creator>former_member630306</dc:creator>
      <dc:date>2008-10-16T09:08:48Z</dc:date>
    </item>
  </channel>
</rss>

