<?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: always error uploading excel file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927694#M1332527</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;Try the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_filetype(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_gui_sep TYPE c,&lt;/P&gt;&lt;P&gt;        lv_file_name TYPE string.&lt;/P&gt;&lt;P&gt;  lv_filetype = 'ASC'.&lt;/P&gt;&lt;P&gt;  lv_gui_sep = 'X'.&lt;/P&gt;&lt;P&gt;  lv_file_name = pa_dfile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM call to upload file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lv_filetype&lt;/P&gt;&lt;P&gt;      has_field_separator     = lv_gui_sep&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_zhralcon_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the excel file as tabdelimited file and then execute the code.&lt;/P&gt;&lt;P&gt;it will help to solve your problem.&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;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 03:40:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-30T03:40:16Z</dc:date>
    <item>
      <title>always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927689#M1332522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to learn how to upload excel files into internal tables and do further processing from there.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am basing my code from [here|http://www.sapdev.co.uk/file/file_upexcelalt2.htm] . And I created a simple 3-column text file like they did in the example. &lt;/P&gt;&lt;P&gt;When I run the program, it always says "error upload OLE". In the debugger sy-subrc becomes 2 which means "Error Uploading OLE". I don't know what's wrong. I've tried other methods of uploading excel files, but they also produce "error upload OLE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our office workstations run Openoffice 3. And I created the excel file using Open Office in XLS format.&lt;/P&gt;&lt;P&gt;Am I doing anything wrong? Do I need to have Excel installed in my workstation? What should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mozart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 01:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927689#M1332522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T01:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927690#M1332523</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;I never had an error using the fm ALSM_EXCEL_TO_INTERNAL_TABLE. But im also using Microsoft Excel...May be you really need to install it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 02:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927690#M1332523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T02:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927691#M1332524</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;I have used same code in my system &amp;amp; it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is some thing wrong in your creation of Excel File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;ShreeMohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 03:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927691#M1332524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T03:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927692#M1332525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use open office?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 03:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927692#M1332525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T03:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927693#M1332526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Micrsoft Office.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 03:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927693#M1332526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T03:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927694#M1332527</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;Try the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_filetype(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_gui_sep TYPE c,&lt;/P&gt;&lt;P&gt;        lv_file_name TYPE string.&lt;/P&gt;&lt;P&gt;  lv_filetype = 'ASC'.&lt;/P&gt;&lt;P&gt;  lv_gui_sep = 'X'.&lt;/P&gt;&lt;P&gt;  lv_file_name = pa_dfile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM call to upload file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lv_filetype&lt;/P&gt;&lt;P&gt;      has_field_separator     = lv_gui_sep&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_zhralcon_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the excel file as tabdelimited file and then execute the code.&lt;/P&gt;&lt;P&gt;it will help to solve your problem.&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;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 03:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927694#M1332527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T03:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927695#M1332528</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;Check whether the excel sheet is open while execution of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927695#M1332528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927696#M1332529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;type-pools : truxs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Internal table declaartion for excel file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data :       it_raw type truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Calling the function module to upload Excelsheet data to Internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_FIELD_SEPERATOR          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     i_line_header              = 'X'&lt;/P&gt;&lt;P&gt;      i_tab_raw_data             = it_raw  &lt;/P&gt;&lt;P&gt;      i_filename                 = p_flname          " our excel file&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      i_tab_converted_data       = it_upload  " our inetrnal table&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     conversion_failed          = 1&lt;/P&gt;&lt;P&gt;     others                     = 2&lt;/P&gt;&lt;P&gt;            .&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;Please go through it and you can get the excel file data into our Internaltable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: polisetty pramod on Jul 30, 2009 6:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927696#M1332529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927697#M1332530</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;Since you are using Open Office Excel, try these FM's to upload them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
text_convert_xls_to_sap
KCD_EXCEL_OLE_TO_INT_CONVERT 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They work for open office applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927697#M1332530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927698#M1332531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mrpena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload from excel use FM: ALSM_EXCEL_TO_INTERNAL_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you create one selection screen, where you need to give the file path, starting row &amp;amp; end row of the excel sheet&lt;/P&gt;&lt;P&gt; &amp;amp; starting &amp;amp; end column of the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = po_file&lt;/P&gt;&lt;P&gt;    i_begin_col                   = '1'&lt;/P&gt;&lt;P&gt;    i_begin_row                   = '1'&lt;/P&gt;&lt;P&gt;    i_end_col                     = '4'&lt;/P&gt;&lt;P&gt;    i_end_row                     = '2'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    intern                        = i_file&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INCONSISTENT_PARAMETERS       = 1&lt;/P&gt;&lt;P&gt;   UPLOAD_OLE                    = 2&lt;/P&gt;&lt;P&gt;   OTHERS                        = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in i_final internal table you will get all the data from excel . then you need to transfer all the data from i_final to sap structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand this well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927698#M1332531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927699#M1332532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii Mrpena,&lt;/P&gt;&lt;P&gt;Plz check whether internal table and excel are of same sequence or not .. It should be in same sequence&lt;/P&gt;&lt;P&gt;just try following code. it might help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data T_TAB LIKE  STANDARD TABLE  OF FS_TAB.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_FILE1 TYPE IBIPPARMS-PATH OBLIGATORY.
 SELECTION-SCREEN END OF BLOCK B1.

AT SELECTION-SCREEN  ON VALUE-REQUEST FOR P_FILE1.
CALL FUNCTION 'F4_FILENAME'
   EXPORTING
     PROGRAM_NAME        = SYST-CPROG
*   DYNPRO_NUMBER       = SYST-DYNNR
     FIELD_NAME          = ' '
   IMPORTING
     FILE_NAME           = P_FILE1.
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
**   I_FIELD_SEPERATOR          =
***   I_LINE_HEADER              =
      I_TAB_RAW_DATA             = T_TAB
      I_FILENAME                 = P_FILE1
    TABLES
      I_TAB_CONVERTED_DATA       = IT_DATA[]  . "Your Internal Table body&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;after this Your internal table have all records from excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Apoorv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 06:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927699#M1332532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T06:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927700#M1332533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all. &lt;/P&gt;&lt;P&gt;installing Microsoft Office 2003 solved the problem. Inside the FM, you can see SAP calling EXCEL application. It seems when SAP reads the file, it first opens Excel, then copies from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 09:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927700#M1332533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: always error uploading excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927701#M1332534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your replies &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 09:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/always-error-uploading-excel-file/m-p/5927701#M1332534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T09:31:33Z</dc:date>
    </item>
  </channel>
</rss>

