<?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 upload data from Excel to internal table without using Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184661#M465020</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;My reqirment is to read the excel input data and then upload it to internal table for further proceeing but without using selection input screen. I mean can I mention the fixed file name and the path in the function module iself for the input file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 11:28:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-25T11:28:04Z</dc:date>
    <item>
      <title>upload data from Excel to internal table without using Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184661#M465020</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;My reqirment is to read the excel input data and then upload it to internal table for further proceeing but without using selection input screen. I mean can I mention the fixed file name and the path in the function module iself for the input file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184661#M465020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: upload data from Excel to internal table without using Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184662#M465021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM ALSM_EXCEL_TO_INTERNAL_TABLE. Here you can mention file name in the importing parameter 'FILENAME'. I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184662#M465021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: upload data from Excel to internal table without using Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184663#M465022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this Fm: ZRFC_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184663#M465022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: upload data from Excel to internal table without using Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184664#M465023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.First create one internal table as u have created ur EXCEL file.&lt;/P&gt;&lt;P&gt;e.g: if ur EXCEL file contains 3 fields col1 col2 and col3.&lt;/P&gt;&lt;P&gt;       data: begin of wa,&lt;/P&gt;&lt;P&gt;                 col1(10),&lt;/P&gt;&lt;P&gt;                 col2(10),&lt;/P&gt;&lt;P&gt;                 col3(10),&lt;/P&gt;&lt;P&gt;               end of wa,&lt;/P&gt;&lt;P&gt;               itab like standard table of wa.&lt;/P&gt;&lt;P&gt;data: filename type string 'C:\FOLDER\DATA.XLS'&lt;/P&gt;&lt;P&gt;If u dont want to use the screen, then pass the file name directly to the GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = filename&lt;/P&gt;&lt;P&gt;   FILETYPE                      = '.XLS'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;  OTHERS                        = 17&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;This will serve ur puspose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;write: / wa-col1,wa-col2,wa-col3.&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;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-excel-to-internal-table-without-using-screen/m-p/2184664#M465023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:35:21Z</dc:date>
    </item>
  </channel>
</rss>

