<?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: what is the function module which uploads excel file data into tcodes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147352#M1514162</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;Try this FM : alsm_excel_to_internal_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 09:48:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-18T09:48:02Z</dc:date>
    <item>
      <title>what is the function module which uploads excel file data into tcodes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147351#M1514161</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 want to upload data in cs01 tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but data is excel sheet while i am trying to use gui_upload it is not being possible for me to upload data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me what is the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any send me the steps how to uplaod data if it is in excelsheet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;naveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: FAQ, please search for available information before asking.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locked by: Thomas Zloch on Aug 18, 2010 1:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147351#M1514161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: what is the function module which uploads excel file data into tcodes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147352#M1514162</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;Try this FM : alsm_excel_to_internal_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147352#M1514162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: what is the function module which uploads excel file data into tcodes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147353#M1514163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but with that function module only one record will be uploaded it seems becuase it is asking col and row i have 20 coloumns and 20 rows then how i can assign that many columns and that many rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147353#M1514163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: what is the function module which uploads excel file data into tcodes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147354#M1514164</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;If you have to upload the data form Excel sheet to a particular tranaction, then you need to have a praticular functionlaity in place for the same. This means if you wnat to upload the data from excel sheet to a tcode then You have to get the data in an internal table first &amp;amp; then either by a BAPI or a BDC you have to update the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just search for this more in forum [Data Transfers|&lt;A class="jive_macro jive_macro_community" href="https://community.sap.com/" __jive_macro_name="community" modifiedtitle="true" __default_attr="2022"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147354#M1514164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: what is the function module which uploads excel file data into tcodes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147355#M1514165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just refer this code snippet which I have developed recently for uploading Excel data to Internal table :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
       EXPORTING
            filename    = p_file1
            i_begin_col = '1'
            i_begin_row = '1'
            i_end_col   = '2'
            i_end_row   = '48'
       TABLES
            intern      = itab.


  IF NOT itab[] IS INITIAL.


*loop at itab.

    LOOP AT itab.

      CASE itab-col.

*---First Column
        WHEN '1'.

        translate itab-value to upper case.

          it_user-BNAME = itab-value.

*---Second Column
        WHEN '2'.
          it_user-NAME_TEXT = itab-value.


          APPEND it_user.

          CLEAR it_user.
      ENDCASE.
    ENDLOOP.
  ENDIF.


    IF NOT it_user[] IS INITIAL.

    MODIFY zactv_dialog_usr FROM TABLE it_user.

    IF sy-subrc = 0.
      COMMIT WORK.

      WRITE : sy-dbcnt, 'Records updated successfully'.

    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147355#M1514165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: what is the function module which uploads excel file data into tcodes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147356#M1514166</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;   Try the below sample code u ll get an idea of uploading using 'TEXT_CONVERT_XLS_TO_SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zupload_excel_to_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: truxs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file TYPE  rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_datatab,&lt;/P&gt;&lt;P&gt;      col1(30)    TYPE c,&lt;/P&gt;&lt;P&gt;      col2(30)    TYPE c,&lt;/P&gt;&lt;P&gt;      col3(30)    TYPE c,&lt;/P&gt;&lt;P&gt;      END OF t_datatab.&lt;/P&gt;&lt;P&gt;DATA: it_datatab type standard table of t_datatab,&lt;/P&gt;&lt;P&gt;      wa_datatab type t_datatab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_raw TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      field_name = 'P_FILE'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name  = p_file.&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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_FIELD_SEPERATOR        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_line_header            =  'X'&lt;/P&gt;&lt;P&gt;      i_tab_raw_data           =  it_raw       " WORK TABLE&lt;/P&gt;&lt;P&gt;      i_filename               =  p_file&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      i_tab_converted_data     = it_datatab[]    "ACTUAL DATA&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_failed        = 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;    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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  LOOP AT it_datatab INTO wa_datatab.&lt;/P&gt;&lt;P&gt;    WRITE:/ wa_datatab-col1,&lt;/P&gt;&lt;P&gt;            wa_datatab-col2,&lt;/P&gt;&lt;P&gt;            wa_datatab-col3.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regrads,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-function-module-which-uploads-excel-file-data-into-tcodes/m-p/7147356#M1514166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:22:17Z</dc:date>
    </item>
  </channel>
</rss>

