<?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: Upload Excel data to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577366#M1660479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is confirmed ALSM_EXCEL_TO_INTERNAL_TABLE won't work on more than 65K rows.  Will convert the .xlsx file to tab delimited text file for upload.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 06:05:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-02T06:05:14Z</dc:date>
    <item>
      <title>Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577361#M1660474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to import a HUGE Excel .xlsx file (&amp;gt; 150K rows) into an internal table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have explored the following FMs but it seems like none of them can handle more than 65K rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;KCD_EXCEL_OLE_TO_INT_CONVERT&lt;/P&gt;&lt;P&gt;TEXT_CONVERT_XLS_TO_SAP&lt;/P&gt;&lt;P&gt;GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 01:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577361#M1660474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T01:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577362#M1660475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, save .xlsx file as .csv and try uploading with gui_upload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Thomas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 01:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577362#M1660475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T01:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577363#M1660476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload excel data into XSTRING and Convert it into internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 04:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577363#M1660476</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2012-02-02T04:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577364#M1660477</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 the bellow thred for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="2027630"&gt;&lt;/SPAN&gt;&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;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 04:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577364#M1660477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T04:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577365#M1660478</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 this below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;you should change the program based on your number of fields of excel sheet. if you have five fields &lt;/P&gt;&lt;P&gt;then you can adjust structure to 5 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Here based on excell sheet fileds we can create number of fields

TYPES:
BEGIN OF ty_upload,
F1 TYPE c length 15,
F2 TYPE c length 15,
F3 TYPE c length 15,
END OF ty_upload.



DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH DEFAULT KEY.
DATA wa_upload TYPE ty_upload.

DATA itab TYPE STANDARD TABLE OF alsmex_tabline WITH DEFAULT KEY.
FIELD-SYMBOLS: &amp;lt;wa&amp;gt; type alsmex_tabline.

* create variable to hold the file name of presentation server

PARAMETERS: p_file TYPE  rlgrap-filename.
* At selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      field_name = 'P_FILE'
    IMPORTING
      file_name  = p_file.

START-OF-SELECTION.

CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
**filename = filename

filename = p_file
i_begin_col = 1
i_begin_row = 1
i_end_col = 3
i_end_row = 65535
TABLES
intern = itab.

LOOP AT itab ASSIGNING &amp;lt;wa&amp;gt;.


CASE &amp;lt;wa&amp;gt;-col.
WHEN '0001'.
wa_upload-F1 = &amp;lt;wa&amp;gt;-value.
WRITE:&amp;lt;wa&amp;gt;-value.
WHEN '0002'.
wa_upload-F2 = &amp;lt;wa&amp;gt;-value.
WRITE:&amp;lt;wa&amp;gt;-value.
WHEN '0003'.
wa_upload-F3 = &amp;lt;wa&amp;gt;-value.
WRITE:&amp;lt;wa&amp;gt;-value.
ENDCASE.
APPEND wa_upload TO it_upload.
CLEAR wa_upload.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also try the  function module : &lt;STRONG&gt;TEXT_CONVERT_XLS_TO_SAP&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 05:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577365#M1660478</guid>
      <dc:creator>sreenivas_pachva</dc:creator>
      <dc:date>2012-02-02T05:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577366#M1660479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is confirmed ALSM_EXCEL_TO_INTERNAL_TABLE won't work on more than 65K rows.  Will convert the .xlsx file to tab delimited text file for upload.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 06:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577366#M1660479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T06:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel data to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577367#M1660480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prepare the structure of the required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generate the excel sheet of the required field and then save the data in the excel sheet and then save as the same excel file in the tab delimited format and upload the same using fm GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;akshay ruia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 06:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-data-to-internal-table/m-p/8577367#M1660480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T06:28:04Z</dc:date>
    </item>
  </channel>
</rss>

