<?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 excel files? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101737#M103663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have access to the application server, then you can do it the same way as you do on your local PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, try using OPEN/READ/CLOSE dataset in BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the SAP help files on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2005 22:11:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-25T22:11:46Z</dc:date>
    <item>
      <title>uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101733#M103659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i already know how to upload excel file from local pc can anyone tell me how to upload excel file from the application server??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 10:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101733#M103659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T10:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101734#M103660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function module KCD_EXCEL_OLE_TO_INT_CONVERT will allow you to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 10:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101734#M103660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T10:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101735#M103661</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 one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieve Data file from Application server&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.

OPEN DATASET i_file FOR INPUT IN TEXT MODE.
IF sy-subrc NE 0.
MESSAGE e999(za) WITH 'Error opening file' i_file.
ENDIF.
DO.
* Reads each line of file individually
READ DATASET i_file INTO wa_datatab.
* Perform processing here
* .....
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may Refer to yhese links too: &lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_uptabsap.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_uptabsap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;try this one&lt;/P&gt;&lt;P&gt;FM: UPLOAD_FILES&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 10:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101735#M103661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T10:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101736#M103662</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;You can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_file FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;v_file LIKE FILENAME-FILEINTERN, "File name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 11:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101736#M103662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T11:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101737#M103663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have access to the application server, then you can do it the same way as you do on your local PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, try using OPEN/READ/CLOSE dataset in BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the SAP help files on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 22:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101737#M103663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T22:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101738#M103664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel file cannot be uploaded from application server unless it is converted to a text file.  Excel file is belongs Windows OS and Application server will be either in Unix or Informix etc.  Text file is the only compatible format across all the platform and so excel file should be changed to the common format.  Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kasthuri Rangan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 03:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101738#M103664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T03:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101739#M103665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can the conversion of excel file into .txt format can be done internally through ABAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 10:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101739#M103665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: uploading excel files?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101740#M103666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this to be the easiest way to handle Excel files on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_filestructure,            &lt;/P&gt;&lt;P&gt;            row(500)                   type c,               &lt;/P&gt;&lt;P&gt;        end of ty_filestructure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  i_filedata      type standard table of ty_filestructure&lt;/P&gt;&lt;P&gt;                        with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_fnam         like rlgrap-filename,                 &lt;/P&gt;&lt;P&gt;        l_filedata     type kcde_intern,                     &lt;/P&gt;&lt;P&gt;        l_fileline     like line of l_filedata,              &lt;/P&gt;&lt;P&gt;        l_col          type kcd_ex_col_n.                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_fnam = p_fnam.                                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;pick up the sheet of the workbook that has the focus&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'               &lt;/P&gt;&lt;P&gt;       exporting                                             &lt;/P&gt;&lt;P&gt;            filename                = l_fnam                 &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               = 50                     &lt;/P&gt;&lt;P&gt;            i_end_row               = 2500                   &lt;/P&gt;&lt;P&gt;       tables                                                &lt;/P&gt;&lt;P&gt;            intern                  = l_filedata             &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;  if sy-subrc &amp;lt;&amp;gt; 0.                                          &lt;/P&gt;&lt;P&gt;    message i000(38)                                         &lt;/P&gt;&lt;P&gt;       with 'Error loading data - return code'               &lt;/P&gt;&lt;P&gt;            sy-subrc.                                        &lt;/P&gt;&lt;P&gt;    exit.                                                    &lt;/P&gt;&lt;P&gt;  endif.                                                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;create real table rows from l_filedata; pull back empty cells as&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  well as populated ones&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at l_filedata into l_fileline.                        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_col = l_col + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if l_fileline-col = l_col.&lt;/P&gt;&lt;P&gt;      concatenate i_filedata                                 &lt;/P&gt;&lt;P&gt;                  l_fileline-value                           &lt;/P&gt;&lt;P&gt;             into i_filedata                                 &lt;/P&gt;&lt;P&gt;        separated by c_comma.                                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      while l_col &amp;lt; l_fileline-col.&lt;/P&gt;&lt;P&gt;        concatenate i_filedata                               &lt;/P&gt;&lt;P&gt;                    space                                    &lt;/P&gt;&lt;P&gt;               into i_filedata                               &lt;/P&gt;&lt;P&gt;          separated by c_comma.                              &lt;/P&gt;&lt;P&gt;        l_col = l_col + 1.&lt;/P&gt;&lt;P&gt;      endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      concatenate i_filedata                                 &lt;/P&gt;&lt;P&gt;               l_fileline-value                              &lt;/P&gt;&lt;P&gt;          into i_filedata                                    &lt;/P&gt;&lt;P&gt;     separated by c_comma.                                   &lt;/P&gt;&lt;P&gt;&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;    at end of row.                                           &lt;/P&gt;&lt;P&gt;      shift i_filedata left deleting leading c_comma.        &lt;/P&gt;&lt;P&gt;      append i_filedata.                                     &lt;/P&gt;&lt;P&gt;      clear i_filedata.                                      &lt;/P&gt;&lt;P&gt;      clear l_col.&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;Margaret.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 10:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-excel-files/m-p/1101740#M103666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T10:43:15Z</dc:date>
    </item>
  </channel>
</rss>

