<?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: Convert spreadsheetml to itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498230#M1558105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wolfgang Bauer ,&lt;/P&gt;&lt;P&gt;If your excel contains more than 255 Character you can Use OLE to read the spread sheet .&lt;/P&gt;&lt;P&gt;hear is a standard FM to read excel to read Excel using OLE &lt;/P&gt;&lt;P&gt; KCD_EXCEL_OLE_TO_INT_CONVERT ( this function module reads upto 32 Character in a cell you can copy it to zee and modify the length )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 07:50:07 GMT</pubDate>
    <dc:creator>anup_deshmukh4</dc:creator>
    <dc:date>2010-12-17T07:50:07Z</dc:date>
    <item>
      <title>Convert spreadsheetml to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498228#M1558103</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;&lt;/P&gt;&lt;P&gt;I want to convert the values of a spreadsheetml file (excel xml file) to a internal table.&lt;/P&gt;&lt;P&gt;Are there any standard classes? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a lot of documentation how to create spreadsheetml fiels using abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't spread the links about the creation!&lt;/P&gt;&lt;P&gt;I'm only interested in the conversion of such a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 07:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498228#M1558103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-17T07:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert spreadsheetml to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498229#M1558104</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;you can use the FM TEXT_CONVERT_XLS_TO_SAP&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;Function module called to upload xls data into an internal table
*&amp;amp;---------------------------------------------------------------------*
 
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
 EXPORTING
i_field_seperator    = 'X'
 i_line_header        = 'X'
i_tab_raw_data       = it_raw
 i_filename           = p_file_path
  TABLES
  i_tab_converted_data = it_upload[]     "internal table having same struc as that of the flat files
 EXCEPTIONS
  conversion_failed    = 1
 OTHERS               = 2.
IF it_upload[] IS INITIAL.
   MESSAGE e002(zmsg).
  ELSE.
  ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or the FM&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM get_filddata .
 
  file = 'C:\Documents and Settings\maheswari.chegu\Desktop\Materialtype.XLS'.
 
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      filename                = file
      i_begin_col             = '1'
      i_begin_row             = '1'
      i_end_col               = '5'
      i_end_row               = '6000'
    TABLES
      intern                  = xcel
    EXCEPTIONS
      inconsistent_parameters = 1
      upload_ole              = 2
      OTHERS                  = 3.
 
  LOOP AT xcel.
 
    CASE xcel-col.
      WHEN '0001'.
        itab-fld1 = xcel-value.
      WHEN '0002'.
        itab-fld2 = xcel-value.
      WHEN '0003'.
        itab-fld3 = xcel-value.
      WHEN '0004'.
        itab-fld4 = xcel-value.
      WHEN '0005'.
        itab-fld5 = xcel-value.
    ENDCASE.
 
    AT END OF row.
      APPEND itab.
      CLEAR itab.
    ENDAT.
 
  ENDLOOP.
 
ENDFORM.                    " GET_FILDDATA
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 07:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498229#M1558104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-17T07:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert spreadsheetml to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498230#M1558105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wolfgang Bauer ,&lt;/P&gt;&lt;P&gt;If your excel contains more than 255 Character you can Use OLE to read the spread sheet .&lt;/P&gt;&lt;P&gt;hear is a standard FM to read excel to read Excel using OLE &lt;/P&gt;&lt;P&gt; KCD_EXCEL_OLE_TO_INT_CONVERT ( this function module reads upto 32 Character in a cell you can copy it to zee and modify the length )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 07:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spreadsheetml-to-itab/m-p/7498230#M1558105</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-12-17T07:50:07Z</dc:date>
    </item>
  </channel>
</rss>

