<?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: Upload data using 'GUI_UPLOAD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257149#M488841</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;To Upload the excel file FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BElow is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ttab ,&lt;/P&gt;&lt;P&gt;      fld1(30) type c,&lt;/P&gt;&lt;P&gt;      fld2(30) type c,&lt;/P&gt;&lt;P&gt;      fld3(30) type c,&lt;/P&gt;&lt;P&gt;      fld4(30) type c,&lt;/P&gt;&lt;P&gt;      fld5(30) type c,&lt;/P&gt;&lt;P&gt;      end of ttab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of ttab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters: p_file type localfile default&lt;/P&gt;&lt;P&gt;            'C:\test.txt'.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;  call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            static    = 'X'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            file_name = p_file.&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;  clear itab. refresh itab.&lt;/P&gt;&lt;P&gt;  perform upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    write:/ itab-fld1, itab-fld2, itab-fld3, itab-fld4, itab-fld5.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload_Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: file type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;  data: xcel type table of alsmex_tabline with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  file = p_file.&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                = file&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               = '200'&lt;/P&gt;&lt;P&gt;            i_end_row               = '10000'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            intern                  = xcel&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;            upload_ole              = 2&lt;/P&gt;&lt;P&gt;            others                  = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at xcel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case xcel-col.&lt;/P&gt;&lt;P&gt;      when '0001'.&lt;/P&gt;&lt;P&gt;        itab-fld1 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0002'.&lt;/P&gt;&lt;P&gt;        itab-fld2 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0003'.&lt;/P&gt;&lt;P&gt;        itab-fld3 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0004'.&lt;/P&gt;&lt;P&gt;        itab-fld4 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0005'.&lt;/P&gt;&lt;P&gt;        itab-fld5 = xcel-value.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of row.&lt;/P&gt;&lt;P&gt;      append itab.&lt;/P&gt;&lt;P&gt;      clear 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;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjunath MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 12:47:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T12:47:41Z</dc:date>
    <item>
      <title>Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257145#M488837</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;      l like to upload data from local file.&lt;/P&gt;&lt;P&gt;My question is how to upload data from .xls file using function 'GUI_UPLOAD', and then transfert that data into local internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257145#M488837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257146#M488838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get filetype by extracting last three characters of filename. It can be .xls,.txt,etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is of '.txt',use Function module 'GUI_UPLOAD'.&lt;/P&gt;&lt;P&gt;If it is of '.xls',use Function module 'ALSM_EXCEL_TO_INTERNAL_TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257146#M488838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257147#M488839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the function call ALSM_EXCEL_TO_INTERNAL_TABLE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257147#M488839</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-05-22T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257148#M488840</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 u want to upload from Excel then use this FM "'ALSM_EXCEL_TO_INTERNAL_TABLE'" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this info helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257148#M488840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257149#M488841</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;To Upload the excel file FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BElow is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ttab ,&lt;/P&gt;&lt;P&gt;      fld1(30) type c,&lt;/P&gt;&lt;P&gt;      fld2(30) type c,&lt;/P&gt;&lt;P&gt;      fld3(30) type c,&lt;/P&gt;&lt;P&gt;      fld4(30) type c,&lt;/P&gt;&lt;P&gt;      fld5(30) type c,&lt;/P&gt;&lt;P&gt;      end of ttab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of ttab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters: p_file type localfile default&lt;/P&gt;&lt;P&gt;            'C:\test.txt'.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;  call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            static    = 'X'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            file_name = p_file.&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;  clear itab. refresh itab.&lt;/P&gt;&lt;P&gt;  perform upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    write:/ itab-fld1, itab-fld2, itab-fld3, itab-fld4, itab-fld5.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload_Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: file type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;  data: xcel type table of alsmex_tabline with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  file = p_file.&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                = file&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               = '200'&lt;/P&gt;&lt;P&gt;            i_end_row               = '10000'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            intern                  = xcel&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;            upload_ole              = 2&lt;/P&gt;&lt;P&gt;            others                  = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at xcel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case xcel-col.&lt;/P&gt;&lt;P&gt;      when '0001'.&lt;/P&gt;&lt;P&gt;        itab-fld1 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0002'.&lt;/P&gt;&lt;P&gt;        itab-fld2 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0003'.&lt;/P&gt;&lt;P&gt;        itab-fld3 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0004'.&lt;/P&gt;&lt;P&gt;        itab-fld4 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0005'.&lt;/P&gt;&lt;P&gt;        itab-fld5 = xcel-value.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of row.&lt;/P&gt;&lt;P&gt;      append itab.&lt;/P&gt;&lt;P&gt;      clear 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;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjunath MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257149#M488841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257150#M488842</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;Please use ws_upload instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following link for additional details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://goldenink.com/abap/ws_upload.html" target="test_blank"&gt;http://goldenink.com/abap/ws_upload.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257150#M488842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257151#M488843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ALSM_EXCEL_TO_INTERNAL_TABLE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-using-gui-upload/m-p/2257151#M488843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:48:13Z</dc:date>
    </item>
  </channel>
</rss>

