<?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: Type conversion error while excel upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994346#M1697478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check your declaration part of &lt;STRONG&gt;excel_tab &lt;/STRONG&gt;and one more thing as you told &lt;STRONG&gt;The excel file can contain data of length much more than 255&amp;nbsp; &lt;/STRONG&gt;for this purpose you may use &lt;STRONG&gt;OLE2&lt;/STRONG&gt; to read your data from Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 06:44:24 GMT</pubDate>
    <dc:creator>Aashish28</dc:creator>
    <dc:date>2012-09-07T06:44:24Z</dc:date>
    <item>
      <title>Type conversion error while excel upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994345#M1697477</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 am using FM ALSM_EXCEL_TO_INTERNAL_TABLE to convert excel data in to internal table and then uploading it to a Z table. For this, FM ALSM_EXCEL_TO_INTERNAL_TABLE takes parameter of structure ALSMEX_TABLINE and saves cell value in a field of type Char 50. The issue is,&amp;nbsp; The excel file can contain data of length much more than 255. I have tried defining data type as LCHR &amp;amp; String but while storing, it gives the exception CX_SY_DYN_CALL_ILLEGAL_TYPE with Run time error&amp;nbsp; PERFORM_CONFLICT_TAB_TYPE on the following internal code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PERFORM separated_to_intern_convert TABLES excel_tab intern&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USING&amp;nbsp; ld_separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* clear clipboard&lt;/P&gt;&lt;P&gt;&amp;nbsp; REFRESH excel_tab. ---this line throws exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL METHOD cl_gui_frontend_services=&amp;gt;clipboard_export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = excel_tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ld_rc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cntl_error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR_NO_GUI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOT_SUPPORTED_BY_GUI = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt; Please suggest how do I resolve this type incompatibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Binita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 06:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994345#M1697477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-07T06:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion error while excel upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994346#M1697478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check your declaration part of &lt;STRONG&gt;excel_tab &lt;/STRONG&gt;and one more thing as you told &lt;STRONG&gt;The excel file can contain data of length much more than 255&amp;nbsp; &lt;/STRONG&gt;for this purpose you may use &lt;STRONG&gt;OLE2&lt;/STRONG&gt; to read your data from Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 06:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994346#M1697478</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-09-07T06:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion error while excel upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994347#M1697479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding. I checked and debugged to the actual line which gives error : &lt;/P&gt;&lt;P&gt;It is the standard include &lt;STRONG&gt; LALSMEXF01&lt;/STRONG&gt; subroutine&amp;nbsp; &lt;EM&gt;separated_to_intern_convert&lt;/EM&gt;. this has argument of type ty_t_itab which is defined with structure &lt;EM&gt;alsmex_tabline. &lt;/EM&gt;this structure is used extensively for this excel to table conversion FMs and Includes. the problem is, it has the field &lt;EM&gt;Value &lt;/EM&gt;which is Char(50) and what my calling program passes is Lchar or string. So there exists incompatibility.I wonder why would SAP allow to copy excel which has column data delimited to just 50 Chars!! is there any way I resolve this? making changes in the standard structure is the last thing i would do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Binita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 09:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994347#M1697479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-07T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion error while excel upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994348#M1697480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; see property of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/135667" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ALSM_EXCEL_TO_INTERNAL_TABLE is not released and it has several limitations , SAP explained this in OSS - Note 933420 &lt;A class="jive-link-external-small" href="https://service.sap.com/sap/support/notes/933420"&gt;https://service.sap.com/sap/support/notes/933420&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of making changes in in the standard structure i already told you make your own z-function with ole2&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/952/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; for reference purpose make copy of &lt;STRONG&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/STRONG&gt; and make changes in &lt;STRONG&gt;subroutine&amp;nbsp; &lt;EM&gt;separated_to_intern_convert .&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Hope you can do this &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/952/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 10:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-error-while-excel-upload/m-p/8994348#M1697480</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-09-07T10:12:40Z</dc:date>
    </item>
  </channel>
</rss>

