<?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: move data from excel to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040204#M419387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am doing is, I downloaded the table A's contents from PRD to my PC as excel file using GUI_DOWNLOAD. And then I want to put the data from that excel into the same table A in QA for my program testing.  I declared the table for FM with "type table of A with header line".  Do you think it is wrong? Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meiying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 17:56:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-16T17:56:01Z</dc:date>
    <item>
      <title>move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040202#M419385</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 am using ALSM_EXCEL_TO_INTERNAL_TABLE to move data from excel to a internal table. I got following errors. Please anyone can tell me where is wrong. Thanks. (the excel file does not have header line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt;  not caught in&lt;/P&gt;&lt;P&gt; procedure "ALSM_EXCEL_TO_INTERNAL_TABLE" "(FUNCTION)", nor was it propagated by&lt;/P&gt;&lt;P&gt;  a RAISING clause.&lt;/P&gt;&lt;P&gt; Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt; exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; The FORM "SEPARATED_TO_INTERN_CONVERT" was called incorrectly.&lt;/P&gt;&lt;P&gt; The call of the FORM is incorrect for parameter nr. 2:&lt;/P&gt;&lt;P&gt; The internal table that is transferred to the formal table parameter has&lt;/P&gt;&lt;P&gt;  a type that is not compatible with the type of the formal parameter.&lt;/P&gt;&lt;P&gt; The FORM "SEPARATED_TO_INTERN_CONVERT" is defined in the program "SAPLALSMEX".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The conditions flagged below have been violated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (" ") The access types specified for the table are not compatible. The&lt;/P&gt;&lt;P&gt; compatibility rules are defined by the following hierarchy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ANY_TABLE (INDEX_TABLE (STANDARD_TABLE, SORTED_TABLE), HASHED_TABLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       A fixed access type is only compatible with its predecessors in&lt;/P&gt;&lt;P&gt;       the hierarchy (example: STANDARD_TABLE is compatible with&lt;/P&gt;&lt;P&gt; INDEX_TABLE and ANY_TABLE, but is not compatible with HASHED_TABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ("X") The row types of the two tables are not compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ("X") The table keys of the two tables do not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (" ") One of the two tables is defined with a unique key (UNIQUE); the&lt;/P&gt;&lt;P&gt; other is defined with a non-unique key (NON-UNIQUE).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 17:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040202#M419385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040203#M419386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error is due to the error in table format used for passing data from the FM.&lt;/P&gt;&lt;P&gt;Check your table declarations for the FM &amp;amp; for final table for moving the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you have declared you file fields as-&lt;/P&gt;&lt;P&gt;PARAMETERS : P_FILE LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass it to string before passing it to Function module for upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 17:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040203#M419386</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-16T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040204#M419387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am doing is, I downloaded the table A's contents from PRD to my PC as excel file using GUI_DOWNLOAD. And then I want to put the data from that excel into the same table A in QA for my program testing.  I declared the table for FM with "type table of A with header line".  Do you think it is wrong? Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meiying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 17:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040204#M419387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T17:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040205#M419388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have downloaded using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;Do check the downloaded file as if it is not formatted then all the data is actually downloaded in a single cell only, which is creating problem while uploading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 17:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040205#M419388</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-16T17:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040206#M419389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked the the downloaded file. It is well formartted. But I am wandering if I need to delete the collum mandt (client) field?  Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meiying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 18:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040206#M419389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T18:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040207#M419390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can try with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data :    wa_raw             type truxs_t_text_data.

    call function 'TEXT_CONVERT_XLS_TO_SAP'
      exporting
        i_tab_raw_data       = wa_raw
        i_filename           = p_filename
      tables
        i_tab_converted_data = i_etab[]
      exceptions
        conversion_failed    = 1
        others               = 2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 18:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040207#M419390</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-16T18:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040208#M419391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that field need to be deleted.&lt;/P&gt;&lt;P&gt;And if still error persis can you poset your code here for uploading the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 18:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040208#M419391</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-16T18:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040209#M419392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see where is my problem now. I got the answer from thread &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="349086"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared my int_excel as "type table of A(my database table) with header line. I should declare it as " LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when I put int_excel  to my actual inter table, do I HAVE TO do like the thread said go thru each column? I have over 10000 rows and 54 columns. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT int_excel.
CASE int_excel-col. "go thru each column.
WHEN 1.
record-name = int_excel-value. 
WHEN 2.
record-age = int_excel-value. 
ENDCASE.
AT END OF row.
APPEND record.
CLEAR record.
ENDAT.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 19:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040209#M419392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T19:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040210#M419393</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 think there will be a limitation for this fm ALSM_EXCEL_TO_INTERNAL_TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;less than equal 50 character length field only can upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 19:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040210#M419393</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-16T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040211#M419394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I tried your FM 'TEXT_CONVERT_XLS_TO_SAP'. But I got error says " conversion_failed ". Would you please provide sample program for how to use this FM? Thanks. I am trying to save my excel to txt, and then use FM "GUI_UPLOAD". Still give me error says " BAD_DATA_FORMAT".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 19:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040211#M419394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T19:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040212#M419395</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;Example u asked for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zupload_excel_to_itab.
 
TYPE-POOLS: truxs.
 
PARAMETERS: p_file TYPE  rlgrap-filename.
 
TYPES: BEGIN OF t_datatab,
      col1(30)    TYPE c,
      col2(30)    TYPE c,
      col3(30)    TYPE c,
      END OF t_datatab.
DATA: it_datatab type standard table of t_datatab,
      wa_datatab type t_datatab.
 
DATA: it_raw TYPE truxs_t_text_data.
 
* 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.
START-OF-SELECTION.
 
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
*     I_FIELD_SEPERATOR        =
      i_line_header            =  'X'
      i_tab_raw_data           =  it_raw       " WORK TABLE
      i_filename               =  p_file
    TABLES
      i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
   EXCEPTIONS
      conversion_failed        = 1
      OTHERS                   = 2.
 
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
 
 
***********************************************************************
* END-OF-SELECTION.
END-OF-SELECTION.
  LOOP AT it_datatab INTO wa_datatab.
    WRITE:/ wa_datatab-col1,
            wa_datatab-col2,
            wa_datatab-col3.
  ENDLOOP.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 20:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040212#M419395</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-16T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040213#M419396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, aRs! But still saying conversion_failed. I am out of enage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 21:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040213#M419396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T21:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040214#M419397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please give your email id, i will send u the excel format and program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 23:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040214#M419397</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-16T23:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040215#M419398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will get back to this one later. I have an urgent task right now. Thanks all. I will certainly award useful answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meiying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 14:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040215#M419398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: move data from excel to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040216#M419399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem has been solved by myself. I successful did it using FM GUI_UPLOAD.  &lt;/P&gt;&lt;P&gt;Meiying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 18:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-data-from-excel-to-internal-table/m-p/2040216#M419399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T18:00:18Z</dc:date>
    </item>
  </channel>
</rss>

