<?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: Excel upload to internal table &amp; append data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379095#M811358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: it_upload type table of ALSMEX_TABLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM  'ALSM_EXCEL_TO_INTERNAL_TABLE' .&lt;/P&gt;&lt;P&gt;contents r stored in row and column format so use the below logic to segregate that into ur intenal table format.&lt;/P&gt;&lt;P&gt;data: it_temp type (internal table with quantity fields.)&lt;/P&gt;&lt;P&gt; SORT it_upload BY row col.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Passing data from it_upload  to respective fields of it_temp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_upload INTO is_upload.&lt;/P&gt;&lt;P&gt;    CASE is_upload-col.&lt;/P&gt;&lt;P&gt;      WHEN '0001'.&lt;/P&gt;&lt;P&gt;        is_temp-plant = is_upload-value.&lt;/P&gt;&lt;P&gt;      WHEN '0002'.&lt;/P&gt;&lt;P&gt;       is_temp-matnr = is_upload-value.&lt;/P&gt;&lt;P&gt;      WHEN '0003'.&lt;/P&gt;&lt;P&gt;        is_temp-monat = is_upload-value.&lt;/P&gt;&lt;P&gt;      WHEN '0004'.&lt;/P&gt;&lt;P&gt;        is_temp-quan = is_upload-value.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    AT END OF row.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      APPEND is_temp TO it_temp.&lt;/P&gt;&lt;P&gt;      CLEAR is_temp.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code servs ur pupose..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2008 05:20:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-15T05:20:01Z</dc:date>
    <item>
      <title>Excel upload to internal table &amp; append data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379092#M811355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used 'ALSM_EXCEL_TO_INTERNAL_TABLE' to upload data from excel to my internal table t_input.&lt;/P&gt;&lt;P&gt;Now i want to populate the data from the excel to proper fields in this internal table.the fields in excel are price ,amount ( till 7 fields). can u tell me how to put data properly into my internal table having 7 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All relevant replies  will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 04:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379092#M811355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T04:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload to internal table &amp; append data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379093#M811356</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;All field 's data type should be &lt;STRONG&gt;Char&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 05:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379093#M811356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T05:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload to internal table &amp; append data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379094#M811357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The key is, the structure of the internal table should match the structure of the excel-file's records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of  rec,&lt;/P&gt;&lt;P&gt;          price type f,&lt;/P&gt;&lt;P&gt;          amount type f,&lt;/P&gt;&lt;P&gt;          ........&lt;/P&gt;&lt;P&gt;          end of rec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_rec type standard table of rec initial size 0 with   header  line.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See to that the attributes of the it_rec fields match with the &lt;/P&gt;&lt;P&gt;excel file fields records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify it_rec in the TABLES parameter of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshmanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 05:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379094#M811357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T05:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload to internal table &amp; append data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379095#M811358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: it_upload type table of ALSMEX_TABLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM  'ALSM_EXCEL_TO_INTERNAL_TABLE' .&lt;/P&gt;&lt;P&gt;contents r stored in row and column format so use the below logic to segregate that into ur intenal table format.&lt;/P&gt;&lt;P&gt;data: it_temp type (internal table with quantity fields.)&lt;/P&gt;&lt;P&gt; SORT it_upload BY row col.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Passing data from it_upload  to respective fields of it_temp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_upload INTO is_upload.&lt;/P&gt;&lt;P&gt;    CASE is_upload-col.&lt;/P&gt;&lt;P&gt;      WHEN '0001'.&lt;/P&gt;&lt;P&gt;        is_temp-plant = is_upload-value.&lt;/P&gt;&lt;P&gt;      WHEN '0002'.&lt;/P&gt;&lt;P&gt;       is_temp-matnr = is_upload-value.&lt;/P&gt;&lt;P&gt;      WHEN '0003'.&lt;/P&gt;&lt;P&gt;        is_temp-monat = is_upload-value.&lt;/P&gt;&lt;P&gt;      WHEN '0004'.&lt;/P&gt;&lt;P&gt;        is_temp-quan = is_upload-value.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    AT END OF row.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      APPEND is_temp TO it_temp.&lt;/P&gt;&lt;P&gt;      CLEAR is_temp.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code servs ur pupose..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 05:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-to-internal-table-append-data/m-p/3379095#M811358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T05:20:01Z</dc:date>
    </item>
  </channel>
</rss>

