<?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: Reading data from Excel spread sheet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948864#M390924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri , &lt;/P&gt;&lt;P&gt;  Use the FM ALSM_EXCEL_TO_INTERNAL_TABLE this will read your exel file and convert it into an internal table , you then need to map this to your internal tablw which you will use to modify the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2007 06:31:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-15T06:31:00Z</dc:date>
    <item>
      <title>Reading data from Excel spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948861#M390921</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 need to write a program in which I have to read data from Excel spread sheet and write these values in the database table.I have no idea about this.will please explain to me how to do this task.Its very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 06:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948861#M390921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T06:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Excel spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948862#M390922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use fm ALSM_EXCEL_TO_INTERNAL_TABLE.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 06:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948862#M390922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T06:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Excel spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948863#M390923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZFI_EXCEL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read the data from the locally held spreadsheet&lt;/P&gt;&lt;P&gt;*Once read using this FM, the data will be held like:-&lt;/P&gt;&lt;P&gt;*ROW  |COL  |VALUE&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;-|&lt;/DEL&gt;&lt;DEL&gt;-|&lt;/DEL&gt;---&lt;/P&gt;&lt;P&gt;*0001 |0001 |2&lt;/P&gt;&lt;P&gt;*0001 |0002 |00000000001&lt;/P&gt;&lt;P&gt;*0001 |0003 |1&lt;/P&gt;&lt;P&gt;*0001 |0004 |&lt;/P&gt;&lt;P&gt;*0001 |0005 |2&lt;/P&gt;&lt;P&gt;*0001 |00010|SHORT TEXT for a/c&lt;/P&gt;&lt;P&gt;*0001 |00011|LONG TEXT a/c 0000000001&lt;/P&gt;&lt;P&gt;*.&lt;/P&gt;&lt;P&gt;*.&lt;/P&gt;&lt;P&gt;*0002 |0001 |2&lt;/P&gt;&lt;P&gt;*0002 |0002 |00000000002&lt;/P&gt;&lt;P&gt;*0002 |0003 |1&lt;/P&gt;&lt;P&gt;*0002 |0004 |&lt;/P&gt;&lt;P&gt;*0002 |0005 |2&lt;/P&gt;&lt;P&gt;*0002 |00010|SHORT TEXT for a/c&lt;/P&gt;&lt;P&gt;*0001 |00011|LONG TEXT a/c 0000000002&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*etc........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of excel_tab occurs 0.&lt;/P&gt;&lt;P&gt;        include structure alsmex_tabline.&lt;/P&gt;&lt;P&gt;data: end of excel_tab .&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        bldat like bkpf-bldat,&lt;/P&gt;&lt;P&gt;        blart like bkpf-blart,&lt;/P&gt;&lt;P&gt;        bukrs like bkpf-bukrs,&lt;/P&gt;&lt;P&gt;        budat like bkpf-budat,&lt;/P&gt;&lt;P&gt;        waers like bkpf-waers,&lt;/P&gt;&lt;P&gt;        bschl like bseg-bschl,&lt;/P&gt;&lt;P&gt;        hkont like bseg-hkont,&lt;/P&gt;&lt;P&gt;        sgtxt like bseg-sgtxt,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;data: process_tab_struct_tmp like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block blk.&lt;/P&gt;&lt;P&gt;parameters: fname type rlgrap-filename.&lt;/P&gt;&lt;P&gt;selection-screen: end of block blk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for fname.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         PROGRAM_NAME        = 'ZFI_EXCEL'&lt;/P&gt;&lt;P&gt;         DYNPRO_NUMBER       = '1000'&lt;/P&gt;&lt;P&gt;         FIELD_NAME          = 'FNAME'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         FILE_NAME           = FNAME.&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;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&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                      = FNAME&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                     = 24&lt;/P&gt;&lt;P&gt;      i_end_row                     = 60000&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                        = EXCEL_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT EXCEL_TAB.&lt;/P&gt;&lt;P&gt;assign component excel_tab-col of structure&lt;/P&gt;&lt;P&gt;                                      process_tab_struct_tmp to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;fs1&amp;gt; = excel_tab-value.&lt;/P&gt;&lt;P&gt; at end of row.&lt;/P&gt;&lt;P&gt; move-corresponding: process_tab_struct_tmp to itab.  &amp;#147;Move values to itab&lt;/P&gt;&lt;P&gt; append itab.&lt;/P&gt;&lt;P&gt; endat.&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;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  WRITE:/2 ITAB-BLDAT,14(8) ITAB-BLART,20(10) ITAB-BUDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 06:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948863#M390923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T06:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Excel spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948864#M390924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri , &lt;/P&gt;&lt;P&gt;  Use the FM ALSM_EXCEL_TO_INTERNAL_TABLE this will read your exel file and convert it into an internal table , you then need to map this to your internal tablw which you will use to modify the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 06:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-excel-spread-sheet/m-p/1948864#M390924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T06:31:00Z</dc:date>
    </item>
  </channel>
</rss>

