<?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 conflict while uploading data from Excel sheet to Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535539#M244376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. just change the definition of your form like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM Pres_Upload &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;USING p_upload TYPE RLGRAP-FILENAME&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;p_upload_table TYPE table.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 08:44:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-07T08:44:51Z</dc:date>
    <item>
      <title>Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535538#M244375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried uploading the data from a excel sheet to internal table using the Function Module 'ALSM_EXCEL_TO_INTERNAL_TABLE',but this is throwing  a type conflict error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;data: IEXCEL like alsmex_tabline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;PERFORM Pres_List USING p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM Pres_List USING p_presl TYPE ibipparms-path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROGRAM_NAME = SYST-REPID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DYNPRO_NUMBER = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELD_NAME = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STATIC = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MASK = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;FILE_NAME = p_file&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;MASK_TOO_LONG = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To upload the data.&lt;/P&gt;&lt;P&gt;DATA:w_preup1 TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_preup1 = p_file.&lt;/P&gt;&lt;P&gt;PERFORM Pres_Upload USING w_preup1 t_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM Pres_Upload USING p_upload TYPE string p_upload_table TYPE table.&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_upload&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                     = 26&lt;/P&gt;&lt;P&gt;    i_end_row                     = 65000&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    intern                        = IEXCEL&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt; EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Type conflict is for p_upload in the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 08:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535538#M244375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T08:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535539#M244376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. just change the definition of your form like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM Pres_Upload &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;USING p_upload TYPE RLGRAP-FILENAME&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;p_upload_table TYPE table.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 08:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535539#M244376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T08:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535540#M244377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the function module &amp;lt;b&amp;gt;P_upload should be of type&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RLGRAP-FILENAME&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&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 = &amp;lt;b&amp;gt;p_upload&amp;lt;/b&amp;gt;&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 = 26&lt;/P&gt;&lt;P&gt;i_end_row = 65000&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;intern = IEXCEL&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;Reward if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishnakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 08:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535540#M244377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535541#M244378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; DO thway..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM Pres_Upload USING p_upload TYPE string p_upload_table TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : v_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_file = p_upload.&amp;lt;/b&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_upload&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 = 26&lt;/P&gt;&lt;P&gt;i_end_row = 65000&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;intern = IEXCEL&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 08:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535541#M244378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535542#M244379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that was very helpful.&lt;/P&gt;&lt;P&gt;Now how do i get the data from IEXCEL to a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And How to upload the data from excel sheet to internal table from Application Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 09:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535542#M244379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T09:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535543#M244380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&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;4. In this FM,&lt;/P&gt;&lt;P&gt;there is one TABLES &lt;/P&gt;&lt;P&gt;INTERN = t_upload1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition of this t_upload1&lt;/P&gt;&lt;P&gt;should be as per&lt;/P&gt;&lt;P&gt;INTERN LIKE ALSMEX_TABLINE&lt;/P&gt;&lt;P&gt;and not as per your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Hence, it is giving error here .&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;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 : &amp;lt;fs&amp;gt; .&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;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;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;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 &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;APPEND t001.&lt;/P&gt;&lt;P&gt;CLEAR t001.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col = ex-col.&lt;/P&gt;&lt;P&gt;col1 = col + 1.&lt;/P&gt;&lt;P&gt;READ TABLE cmp INDEX col.&lt;/P&gt;&lt;P&gt;CONCATENATE 'T001-' cmp-compname INTO fldname.&lt;/P&gt;&lt;P&gt;ASSIGN (fldname) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs&amp;gt; = 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 09:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535543#M244380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict while uploading data from Excel sheet to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535544#M244381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data will be in the format below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF w_main,&lt;/P&gt;&lt;P&gt;     tdlnr TYPE komg-tdlnr,&lt;/P&gt;&lt;P&gt;     trfzna TYPE komg-trfzna,&lt;/P&gt;&lt;P&gt;     kbetr(10) TYPE c,&lt;/P&gt;&lt;P&gt;     kbetr1(10) TYPE c,&lt;/P&gt;&lt;P&gt;     END OF w_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:t_main LIKE TABLE OF w_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the data has to be moved from IEXCEL to t_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understand the logic given below &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;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 &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;APPEND t001.&lt;/P&gt;&lt;P&gt;CLEAR t001.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col = ex-col.&lt;/P&gt;&lt;P&gt;col1 = col + 1.&lt;/P&gt;&lt;P&gt;READ TABLE cmp INDEX col.&lt;/P&gt;&lt;P&gt;CONCATENATE 'T001-' cmp-compname INTO fldname.&lt;/P&gt;&lt;P&gt;ASSIGN (fldname) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs&amp;gt; = 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;Can u please elaborate on the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is it possible to Upload the Data from Excel sheet to internal table from Application Sever?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a tab delimited file ,right now i am using the logic given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:c_tab  TYPE c VALUE  cl_abap_char_utilities=&amp;gt;horizontal_tab,&lt;/P&gt;&lt;P&gt;                                                                                OPEN DATASET p_appup1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_appup1 = c_space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE i001(ztr).             &lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i002(ztr).                              &lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.                                         ENDIF.                                                     &lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET p_appup1 INTO w_transfer.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      APPEND w_transfer TO t_transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET p_appup1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_transfer INTO w_transfer.           &lt;/P&gt;&lt;P&gt;    SPLIT w_transfer AT c_tab INTO  w_main-tdlnr&lt;/P&gt;&lt;P&gt;                                    w_main-trfzna&lt;/P&gt;&lt;P&gt;                                    w_main-kbetr&lt;/P&gt;&lt;P&gt;                                    w_main-kbetr1.&lt;/P&gt;&lt;P&gt; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt; APPEND w_main TO t_main.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i006(ztr).                                &lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 09:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-while-uploading-data-from-excel-sheet-to-internal-table/m-p/1535544#M244381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T09:20:47Z</dc:date>
    </item>
  </channel>
</rss>

