<?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: Exception when using FM ALSM_EXCEL_TO_INTERNAL_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-using-fm-alsm-excel-to-internal-table/m-p/1526553#M241053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;parameters: p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;data: it_rows type standard table of t_itab with header line.&lt;/P&gt;&lt;P&gt;data : v_index type i.&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;fs&amp;gt;.&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                = p_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = 1&lt;/P&gt;&lt;P&gt;      i_begin_row             = 4&lt;/P&gt;&lt;P&gt;      i_end_col               = 15&lt;/P&gt;&lt;P&gt;      i_end_row               = 65000&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                  = it_rows&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;  if not it_rows[] is initial.&lt;/P&gt;&lt;P&gt;    sort it_rows by row col.&lt;/P&gt;&lt;P&gt;    loop at it_rows.&lt;/P&gt;&lt;P&gt;      move : it_rows-col to v_index.&lt;/P&gt;&lt;P&gt;      assign component v_index of structure it_output to  &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      move : it_rows-value to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      at end of row.&lt;/P&gt;&lt;P&gt;        append it_output.&lt;/P&gt;&lt;P&gt;        clear  it_output.&lt;/P&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at OSS Notes 129994 and 127666. Hope these notes give some inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 07:08:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-21T07:08:16Z</dc:date>
    <item>
      <title>Exception when using FM ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-using-fm-alsm-excel-to-internal-table/m-p/1526552#M241052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM ALSM_EXCEL_TO_INTERNAL_TABLE, but there is an exception raised which is sy-subrc = 2 and it states UPLOAD_OLE in the FM.&lt;/P&gt;&lt;P&gt;In the FM code, when the control is on the second call method given below the exception is raised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;  CALL METHOD  OF application    'Workbooks' = workbook.&lt;/P&gt;&lt;P&gt;  m_message.&lt;/P&gt;&lt;P&gt;  CALL METHOD  OF workbook 'Open'    EXPORTING #1 = filename.&lt;/P&gt;&lt;P&gt;  m_message.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone throw some light on this.&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;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 06:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-using-fm-alsm-excel-to-internal-table/m-p/1526552#M241052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when using FM ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-using-fm-alsm-excel-to-internal-table/m-p/1526553#M241053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;parameters: p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;data: it_rows type standard table of t_itab with header line.&lt;/P&gt;&lt;P&gt;data : v_index type i.&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;fs&amp;gt;.&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                = p_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = 1&lt;/P&gt;&lt;P&gt;      i_begin_row             = 4&lt;/P&gt;&lt;P&gt;      i_end_col               = 15&lt;/P&gt;&lt;P&gt;      i_end_row               = 65000&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                  = it_rows&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;  if not it_rows[] is initial.&lt;/P&gt;&lt;P&gt;    sort it_rows by row col.&lt;/P&gt;&lt;P&gt;    loop at it_rows.&lt;/P&gt;&lt;P&gt;      move : it_rows-col to v_index.&lt;/P&gt;&lt;P&gt;      assign component v_index of structure it_output to  &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      move : it_rows-value to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      at end of row.&lt;/P&gt;&lt;P&gt;        append it_output.&lt;/P&gt;&lt;P&gt;        clear  it_output.&lt;/P&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at OSS Notes 129994 and 127666. Hope these notes give some inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 07:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-using-fm-alsm-excel-to-internal-table/m-p/1526553#M241053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T07:08:16Z</dc:date>
    </item>
  </channel>
</rss>

