<?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: Uploading Data From Excel Sheet to SAP Database Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248634#M144367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check ALSM_EXCEL_TO_INT_TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2006 04:57:02 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2006-04-19T04:57:02Z</dc:date>
    <item>
      <title>Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248633#M144366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having an Excel Sheet with 90 different columns. Now we want only 2 of the columns to be uploaded in the database tables. So, Plz tell me which function module will be suitable for this. And plz help me with the code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nishant Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 04:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248633#M144366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T04:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248634#M144367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check ALSM_EXCEL_TO_INT_TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 04:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248634#M144367</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-04-19T04:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248635#M144368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nishu,&lt;/P&gt;&lt;P&gt;As want to update SAP tables from excel sheet then you need to write your custom code to do this. For uploading excel sheet into internal table you can use function modules 'WS_UPLOAD' or 'GUI_UPLOAD' depends on your SAP version. Then using UPDATE query you can updated that required 2 columns based on your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you to fix your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 04:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248635#M144368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T04:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248636#M144369</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;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not possible to upload only 2 columns from an excel sheed.You can create another excel sheet for that 2 column and you can upload them using BDC call transation or session method or you can use GUI_UPLOAD function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 05:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248636#M144369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T05:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248637#M144370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nishu,&lt;/P&gt;&lt;P&gt; As suggested you can use ALSM_EXCEL_TO_INTERNAL_TABLE..&lt;/P&gt;&lt;P&gt; specify the filename..&lt;/P&gt;&lt;P&gt; the return internal table of type ALSMEX_TABLINE &lt;/P&gt;&lt;P&gt; WHICH HAS A FIELD &amp;lt;b&amp;gt;COL&amp;lt;/b&amp;gt; which indicates the column&lt;/P&gt;&lt;P&gt; just loop at that itab chack if COL is &amp;lt;= 2 and put it into another itab..&lt;/P&gt;&lt;P&gt; this will have only first 2 columns from the excel..&lt;/P&gt;&lt;P&gt; if you dont get it .. just reply i'll get some sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 05:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248637#M144370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T05:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248638#M144371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishu,&lt;/P&gt;&lt;P&gt; A sample for the same..&lt;/P&gt;&lt;P&gt; data it_excel like table of ALSMEX_TABLINE with header line.&lt;/P&gt;&lt;P&gt;here we retrieve only 2 cols directly..&lt;/P&gt;&lt;P&gt;now itab will contain only 2 cols of all rows seperated by comma ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data str(1000).
data itab like table of str with  header line.

CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  EXPORTING
    filename                      = 'C:sample1.xls'
    i_begin_col                   = 1
    i_begin_row                   = 1
    i_end_col                     = 2
    i_end_row                     = 100
  tables
    intern                        =  it_excel
.

  LOOP AT it_excel.
    AT NEW row.
      CLEAR itab.
    ENDAT.
    IF itab IS INITIAL.
      MOVE it_excel-value TO itab.
    ELSE.
      CONCATENATE itab ',' it_excel-value INTO itab.
    ENDIF.

    AT END OF row.
      APPEND itab.
    ENDAT.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 05:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248638#M144371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T05:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data From Excel Sheet to SAP Database Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248639#M144372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your coding, however, function module 'ALSM_EXCEL_TO_INTERNAL_TABLE' is not available in our current CRM 4.0 system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On which systems is this FM available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 May 2006 12:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-excel-sheet-to-sap-database-tables/m-p/1248639#M144372</guid>
      <dc:creator>Wolfgang_Mayer1</dc:creator>
      <dc:date>2006-05-06T12:21:17Z</dc:date>
    </item>
  </channel>
</rss>

