<?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: Error while uploading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920216#M1331352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Imran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your Excel File is Open please Check and try after Closing and also place the file one the else drive mean not place it on the driver where your OS Installed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if else Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 18:28:54 GMT</pubDate>
    <dc:creator>faisalatsap</dc:creator>
    <dc:date>2009-07-29T18:28:54Z</dc:date>
    <item>
      <title>Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920214#M1331350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hye techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when i am uploading an  *.xls file using GUI_UPLOAD i am getting error message accces denied. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 18:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920214#M1331350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920215#M1331351</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 using this FM for uloading the .xls files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 18:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920215#M1331351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920216#M1331352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Imran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your Excel File is Open please Check and try after Closing and also place the file one the else drive mean not place it on the driver where your OS Installed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if else Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 18:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920216#M1331352</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-07-29T18:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920217#M1331353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hye Altaf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for the reply. It partially solved my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using internal table which has 2 fields, one char24 and other is char4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first coloum mite have entries which start with 0. So in excel i am making the coloum customized to 24 characters text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am executing upload from excel FM which is now opening,  the internal table has so many rows almost 36 rows with values ########$#%#@@ #### .. many are spl symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 18:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920217#M1331353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T18:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920218#M1331354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, but in GUI_UPLOAD, you can try with "ASC" type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 18:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920218#M1331354</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-07-29T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920219#M1331355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Imran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you better to &lt;STRONG&gt;SAVE AS&lt;/STRONG&gt; that &lt;STRONG&gt;XLS&lt;/STRONG&gt; file to &lt;STRONG&gt;CSV&lt;/STRONG&gt; file when you will save this file as from the other file option you can select file type as CSV after save as open this CSV file in &lt;STRONG&gt;NOTEPAD&lt;/STRONG&gt; you will see a ',' after every Field now you can up load this using &lt;STRONG&gt;GUI_UPLOAD&lt;/STRONG&gt; File Type &lt;STRONG&gt;ASC&lt;/STRONG&gt; internal table for upload of following type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of mitab occurs 1000,
 row(200) type c,
end of mitab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than loop at that table and use the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;split mitab-row at ',' into
                                   itab-field1 itab-field2 itab-field3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than append this to your Final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will be helpful for you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if any issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920219#M1331355</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-07-29T19:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920220#M1331356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Imran &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the following Sample Code it is working fine for me hope will solve out your problem too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_test,
  row(200), "( name, amount )
  END OF ty_test.
TYPES: BEGIN OF ty_final, " Because i have only two Col in my Excel file and now in CSV
  name(50), " it is like this ( name, amount )
  amount TYPE p DECIMALS 2,
  END OF ty_final.
DATA: it_test TYPE STANDARD TABLE OF ty_test WITH HEADER LINE.
DATA: it_final TYPE STANDARD TABLE OF ty_final WITH HEADER LINE,
      camount(20).

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename = 'D:\TEST.CSV'
    filetype = 'ASC'
  TABLES
    data_tab = it_test[].

LOOP AT it_test.
  WRITE: / it_test-row.
  SPLIT it_test AT ',' INTO it_final-name camount.
  it_final-amount = camount.
  APPEND it_final.
ENDLOOP.
LOOP AT it_final.
  WRITE: / it_final-name, it_final-amount.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920220#M1331356</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-07-29T19:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920221#M1331357</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 out the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_filetype(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_gui_sep TYPE c,&lt;/P&gt;&lt;P&gt;        lv_file_name TYPE string.&lt;/P&gt;&lt;P&gt;  lv_filetype = 'ASC'.&lt;/P&gt;&lt;P&gt;  lv_gui_sep = 'X'.&lt;/P&gt;&lt;P&gt;  lv_file_name = pa_dfile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM call to upload file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lv_filetype&lt;/P&gt;&lt;P&gt;      has_field_separator     = lv_gui_sep&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_zhralcon_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First save your excel file as tab delimited file and then execute the code.&lt;/P&gt;&lt;P&gt;file should be closed when you execute the code.&lt;/P&gt;&lt;P&gt;it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 03:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920221#M1331357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T03:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920222#M1331358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii Imran,&lt;/P&gt;&lt;P&gt;You cannot use .xls in GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;Convert the file to Tab-delimited and then Try using DAT format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA P_FILET  TYPE STRING.
PARAMETERS: P_FILE1 TYPE IBIPPARMS-PATH.
CALL FUNCTION 'F4_FILENAME'
   EXPORTING
     PROGRAM_NAME        = SYST-CPROG
*   DYNPRO_NUMBER       = SYST-DYNNR
     FIELD_NAME          = ' '
   IMPORTING
     FILE_NAME           = P_FILE1.
P_FILET = P_FILE1.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      = P_FILET
   FILETYPE                      = 'DAT'
  TABLES
    DATA_TAB                      = IT_DATA.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;if u want to upload data directly from Excel (i.e. without converting it to tab-delimited) then use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FM F4_FILENAME as mentioned above.
Data T_TAB LIKE STANDARD TABLE OF FS_TAB.
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
***   I_FIELD_SEPERATOR          =
***   I_LINE_HEADER              =
      I_TAB_RAW_DATA             = T_TAB
      I_FILENAME                 = P_FILE
    TABLES
      I_TAB_CONVERTED_DATA       = IT_DATA[].  "Body of Your Internal Table&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Apoorv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 06:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-uploading/m-p/5920222#M1331358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T06:59:52Z</dc:date>
    </item>
  </channel>
</rss>

