<?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 spread sheet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966070#M947273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     U can try the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zdemo_program .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;types: begin of t_excel,&lt;/P&gt;&lt;P&gt;       fld1(20) type c,&lt;/P&gt;&lt;P&gt;       fld2(20) type c,&lt;/P&gt;&lt;P&gt;       fld3(20) type c,&lt;/P&gt;&lt;P&gt;       end of t_excel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: it001 type table of t001.&lt;/P&gt;&lt;P&gt;data: xt001 type t001.&lt;/P&gt;&lt;P&gt;data: iexcel type table of t_excel.&lt;/P&gt;&lt;P&gt;data: xexcel type t_excel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select * into table it001 from t001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;xexcel-fld1 = 'Field 1'.&lt;/P&gt;&lt;P&gt;xexcel-fld2 = 'Field 2'.&lt;/P&gt;&lt;P&gt;xexcel-fld3 = 'Field 3'.&lt;/P&gt;&lt;P&gt;append xexcel to iexcel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at it001 into xt001.&lt;/P&gt;&lt;P&gt;  xexcel-fld1 = xt001-bukrs.&lt;/P&gt;&lt;P&gt;  xexcel-fld2 = xt001-butxt.&lt;/P&gt;&lt;P&gt;  xexcel-fld3 = xt001-ort01.&lt;/P&gt;&lt;P&gt;  append xexcel to iexcel.&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;call method cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    filename                = 'C:/test.xls'&lt;/P&gt;&lt;P&gt;    write_field_separator   = 'X'&lt;/P&gt;&lt;P&gt;  changing&lt;/P&gt;&lt;P&gt;    data_tab                = iexcel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Biswanath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jun 2008 11:12:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-15T11:12:12Z</dc:date>
    <item>
      <title>uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966063#M947266</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 am using this function module for uplaod CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD&lt;/P&gt;&lt;P&gt;which is working fine if i upload the data from text file like notepad but if i am trying to upload it from exel or spreadsheet it is not uploading the excat data is loading some junk data. please give me the reply i am running behind the schedule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966063#M947266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966064#M947267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try fn, module &lt;STRONG&gt;GUI_UPLOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 15:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966064#M947267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T15:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966065#M947268</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;Upload data from spread sheet can be done with FM 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 15:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966065#M947268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966066#M947269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For Excel you have to use the function module ,&lt;/P&gt;&lt;P&gt;'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass all these parameters according to your recording....&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;      FILENAME                = P_FILE&lt;/P&gt;&lt;P&gt;      I_BEGIN_COL             = 1&lt;/P&gt;&lt;P&gt;      I_BEGIN_ROW             = 4&lt;/P&gt;&lt;P&gt;      I_END_COL               = 21&lt;/P&gt;&lt;P&gt;      I_END_ROW               = 9999&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      INTERN                  = IT_EXCEL&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;Swati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 03:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966066#M947269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T03:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966067#M947270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload data into sap system, use gui_upload function module. or lsmw wil be helpful too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards'&lt;/P&gt;&lt;P&gt;Prem Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 03:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966067#M947270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T03:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966068#M947271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GUI_UPLOAD always collects converted data in the internal table.&lt;/P&gt;&lt;P&gt;You need to convert the data using FM ALSM_EXCEL_TO_INTERNAL_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Eclectic on Jun 13, 2008 2:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 08:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966068#M947271</guid>
      <dc:creator>megha_h</dc:creator>
      <dc:date>2008-06-13T08:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966069#M947272</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 with function module: 'TEXT_CONVERT_XLS_TO_SAP'.&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;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 17:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966069#M947272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966070#M947273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     U can try the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zdemo_program .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;types: begin of t_excel,&lt;/P&gt;&lt;P&gt;       fld1(20) type c,&lt;/P&gt;&lt;P&gt;       fld2(20) type c,&lt;/P&gt;&lt;P&gt;       fld3(20) type c,&lt;/P&gt;&lt;P&gt;       end of t_excel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: it001 type table of t001.&lt;/P&gt;&lt;P&gt;data: xt001 type t001.&lt;/P&gt;&lt;P&gt;data: iexcel type table of t_excel.&lt;/P&gt;&lt;P&gt;data: xexcel type t_excel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select * into table it001 from t001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;xexcel-fld1 = 'Field 1'.&lt;/P&gt;&lt;P&gt;xexcel-fld2 = 'Field 2'.&lt;/P&gt;&lt;P&gt;xexcel-fld3 = 'Field 3'.&lt;/P&gt;&lt;P&gt;append xexcel to iexcel.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at it001 into xt001.&lt;/P&gt;&lt;P&gt;  xexcel-fld1 = xt001-bukrs.&lt;/P&gt;&lt;P&gt;  xexcel-fld2 = xt001-butxt.&lt;/P&gt;&lt;P&gt;  xexcel-fld3 = xt001-ort01.&lt;/P&gt;&lt;P&gt;  append xexcel to iexcel.&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;call method cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    filename                = 'C:/test.xls'&lt;/P&gt;&lt;P&gt;    write_field_separator   = 'X'&lt;/P&gt;&lt;P&gt;  changing&lt;/P&gt;&lt;P&gt;    data_tab                = iexcel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Biswanath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jun 2008 11:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966070#M947273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-15T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966071#M947274</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;&lt;/P&gt;&lt;P&gt;  when you are using gui_upload function...chect the file type which you have given....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For text file the fil type is &lt;STRONG&gt;DAT&lt;/STRONG&gt; and for excel file the file type is &lt;STRONG&gt;ASC&lt;/STRONG&gt;....&lt;/P&gt;&lt;P&gt;      filename                = file&lt;/P&gt;&lt;P&gt;        filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAYBE THATS THE REASON....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check an let me know.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 07:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966071#M947274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T07:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966072#M947275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ALSM_EXCEL_TO_INTERNAL_TABLE  -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; To upload excel data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;To upload flat file data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Murali Krishna Makineni on Jun 17, 2008 9:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 07:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966072#M947275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T07:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966073#M947276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru,&lt;/P&gt;&lt;P&gt;              i have tried putting the module what you have recomended still it is not working from portal, it is working fine when i upload from GUI.  i really apprecite the answers i have got from all of the respected fellows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 19:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966073#M947276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T19:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966074#M947277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for excel files there are some other FM like&lt;/P&gt;&lt;P&gt;ALSM_excel_to_internal_table and many other like to upload different sheet of a excel file for details go to the link below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/uploading-multiple-multitab-excel-sheets-or-ranges.htm" target="test_blank"&gt;http://www.sap-img.com/abap/uploading-multiple-multitab-excel-sheets-or-ranges.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with luck,&lt;/P&gt;&lt;P&gt;pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 04:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966074#M947277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T04:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data from spread sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966075#M947278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the Function Module TEXT_CONVERT_XLS_TO_SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help children of U.N World Food Program by rewarding  points and encourage others to answer your queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 05:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-from-spread-sheet/m-p/3966075#M947278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T05:29:04Z</dc:date>
    </item>
  </channel>
</rss>

