<?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: Incorrect result using the function ALSM_EXCEL_TO_INTERNAL_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389204#M189310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi please use the following FM&lt;/P&gt;&lt;P&gt;This will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TEXT_CONVERT_XLS_TO_SAP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : truxs.&lt;/P&gt;&lt;P&gt;DATA : ws_rawdata TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_FIELD_SEPERATOR          = 'X'&lt;/P&gt;&lt;P&gt;    i_tab_raw_data             = ws_rawdata&lt;/P&gt;&lt;P&gt;    i_filename                 = filename&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_converted_data       = (your internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Dominic  Pappaly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2006 10:19:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-29T10:19:57Z</dc:date>
    <item>
      <title>Incorrect result using the function ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389202#M189308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the function ALSM_EXCEL_TO_INTERNAL_TABLE to load a Excel sheet on an internal table and the function returns the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row  Col   Value&lt;/P&gt;&lt;P&gt;0001 0001 902000100 A601 K 627542130 021 AGARDUN ZMAS 673 EU&lt;/P&gt;&lt;P&gt;0002 0001 902000101 A602 K 627542131 022 AGARDUN ZMAS 695 EU&lt;/P&gt;&lt;P&gt;0003 0001 902000102 A603 K 627542132 023 AGARDUN ZMAS 717 EU&lt;/P&gt;&lt;P&gt;0004 0001 902000103 A604 k 627542133 024 AGARDUN ZMAS 739 EU&lt;/P&gt;&lt;P&gt;0005 0001 902000104 A605 k 627542134 025 AGARDUN ZMAS 761 EU&lt;/P&gt;&lt;P&gt;0006 0001 902000105 A606 W 627542135 026 AGARDUN ZMAS 783 EU&lt;/P&gt;&lt;P&gt;0007 0001 902000106 A607 W 627542136 027 AGARDUN ZMAS 805 EU&lt;/P&gt;&lt;P&gt;0008 0001 902000107 A608 W 627542137 028 AGARDUN ZMAS 827 EU&lt;/P&gt;&lt;P&gt;0009 0001 902000108 A609 K 627542138 029 AGARDUN ZMAS 849 EU&lt;/P&gt;&lt;P&gt;0010 0001 902000109 A610 k 627542139 030 AGARDUN ZMAS 871 EU&lt;/P&gt;&lt;P&gt;0011 0001 902000110 A611 O 627542140 031 AGARDUN ZMAS 893 EU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is to say, the excel sheet has nine columns, and the function thinks that only has 1 column. &lt;/P&gt;&lt;P&gt;I have checked the function with the same file in other computers, and the result has been the correct one, that is to say, the function returns the value of the column in its corresponding column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row  Col   Value&lt;/P&gt;&lt;P&gt;0001 0001 902000100 &lt;/P&gt;&lt;P&gt;0001 0002 A601 &lt;/P&gt;&lt;P&gt;0001 0003 K &lt;/P&gt;&lt;P&gt;0001 0004 627542130 &lt;/P&gt;&lt;P&gt;0001 0005 021 &lt;/P&gt;&lt;P&gt;0001 0006 AGARDUN &lt;/P&gt;&lt;P&gt;0001 0007 ZMAS &lt;/P&gt;&lt;P&gt;0001 0008 673 &lt;/P&gt;&lt;P&gt;0001 0009 EU&lt;/P&gt;&lt;P&gt;0002 0001 902000101&lt;/P&gt;&lt;P&gt;0002 0002 A602 &lt;/P&gt;&lt;P&gt;0002 0003 K &lt;/P&gt;&lt;P&gt;0002 0004 627542131 &lt;/P&gt;&lt;P&gt;0002 0005 022 &lt;/P&gt;&lt;P&gt;0002 0006 AGARDUN &lt;/P&gt;&lt;P&gt;0002 0007 ZMAS &lt;/P&gt;&lt;P&gt;0002 0008 717 &lt;/P&gt;&lt;P&gt;0002 0009 EU&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 09:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389202#M189308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result using the function ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389203#M189309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Garduño,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. U want to upload data from EXCEL &lt;/P&gt;&lt;P&gt;into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. and u are using ALSM_EXCEL_TO_INTERNAL_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. But We cannot do this direclty !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;For uploading purpose :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. There are TWO options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) either save the excel to TAB Delimited file, &lt;/P&gt;&lt;P&gt;and use GUI_UPLOAD to upload the data in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) use FM for excel purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. a) is easy and recommended&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. b) there is a FM for it,&lt;/P&gt;&lt;P&gt;but we have to apply some more logic&lt;/P&gt;&lt;P&gt;bcos the FM uploads data of excel&lt;/P&gt;&lt;P&gt;in the intenal table, &lt;/P&gt;&lt;P&gt;CELL BY CELL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. afTER THAT , we have to convert this cell by cell data,&lt;/P&gt;&lt;P&gt;into our format of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. use this code (just copy paste in new program)&lt;/P&gt;&lt;P&gt;(it is tried wit T001 structure data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(it will AUTOMATICALLY based upon the&lt;/P&gt;&lt;P&gt;fields of internal table,&lt;/P&gt;&lt;P&gt;convert data from cell by cell,&lt;/P&gt;&lt;P&gt;to that of internal table fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;DATA : ex LIKE TABLE OF alsmex_tabline WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : cmp LIKE TABLE OF rstrucinfo WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : col TYPE i.&lt;/P&gt;&lt;P&gt;DATA : col1 TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS :  .&lt;/P&gt;&lt;P&gt;DATA : fldname(50) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&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 = 'd:def.xls'&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 = 100&lt;/P&gt;&lt;P&gt;i_end_row = 100&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;intern = ex&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;BREAK-POINT.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program = sy-repid&lt;/P&gt;&lt;P&gt;fieldname = 'T001'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;components = cmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW row.&lt;/P&gt;&lt;P&gt;IF sy-tabix  = ex-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT. &lt;/P&gt;&lt;P&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;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 10:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389203#M189309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result using the function ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389204#M189310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi please use the following FM&lt;/P&gt;&lt;P&gt;This will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TEXT_CONVERT_XLS_TO_SAP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : truxs.&lt;/P&gt;&lt;P&gt;DATA : ws_rawdata TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_FIELD_SEPERATOR          = 'X'&lt;/P&gt;&lt;P&gt;    i_tab_raw_data             = ws_rawdata&lt;/P&gt;&lt;P&gt;    i_filename                 = filename&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_converted_data       = (your internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Dominic  Pappaly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 10:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389204#M189310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result using the function ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389205#M189311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Angel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 12:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389205#M189311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T12:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result using the function ALSM_EXCEL_TO_INTERNAL_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389206#M189312</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 had the same problem and it was solved reinstalling the SAP Front End on the especific computer.&lt;/P&gt;&lt;P&gt;I think that it was a setting problem, because when the System executes the method CLIPBOARD_IMPORT from class CL_GUI_FRONTEND_SERVICES, the character ASC 009 (Horizontal Tab - "%_HORIZONTAL_TAB") is not recognized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Anderson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 19:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-result-using-the-function-alsm-excel-to-internal-table/m-p/1389206#M189312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T19:03:25Z</dc:date>
    </item>
  </channel>
</rss>

