<?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: GUI_UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912374#M57366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, i have data  in .txt which i am able to upload using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;this data needs to be inserted into r/3 database table.&lt;/P&gt;&lt;P&gt;Problem: i have 5 fields in r/3 table and i have data for 4 fields from sql.&lt;/P&gt;&lt;P&gt;the first field MANDT , I have no values for it and i donot want to fill during inserting .&lt;/P&gt;&lt;P&gt;According to SAP Standard insertion the first values sits in first field.&lt;/P&gt;&lt;P&gt;how can i fill data from my .txt file into r/3 table without filling MANDT.&lt;/P&gt;&lt;P&gt;azee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2005 11:16:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-30T11:16:59Z</dc:date>
    <item>
      <title>GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912369#M57361</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;  I trying my options of uploading a notepad file &amp;amp; an excel file thru GUI_UPLOAD FM ... the notepad file is getting uploaded but for ecel file it it's giving sy-subrc = 13 .... i.e Access Denied... both the notepad &amp;amp; excel sheet are on my desktop... The importing parameters are     :-&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;      HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;for excel sheet I tried commenting &amp;amp; uncommenting the Field_seperator parameter... still it throws the same exception ... sy-subrc = 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me what's wrong here ??...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;-S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 19:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912369#M57361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T19:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912370#M57362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try opening the spreadsheet in Excel and see if Windows has it locked.  I have had this problem before.  If you can open it, save it, then close it.  Then try your ABAP again.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 20:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912370#M57362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T20:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912371#M57363</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;   It's not raising an exception now but in the debug mode when i see the data inside the uploaded internal table I get only one record line &amp;amp; that too a junk data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; then a dump is thrown saying ..                                       &lt;/P&gt;&lt;P&gt;Unable to interpret "##" as a number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;-Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 20:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912371#M57363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T20:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912372#M57364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried Func Mod "ALSM_EXCEL_TO_INTERNAL_TABLE"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 20:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912372#M57364</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-01T20:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912373#M57365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use some extra coding if you want to upload the Excel file using GUI_UPLOAD. If the function module Rich suggested doesn't work for you, here is a sample code that uploads a excel file using GUI_UPLOAD, but uses another function module to convert that uploaded data into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: truxs.

DATA: i_text_data       TYPE truxs_t_text_data,
      v_filename_string TYPE string.

DATA: BEGIN OF itab OCCURS 0,
        Name(30),
        Phone(15),
        Fax(500).
DATA: END OF itab.

PARAMETERS: p_file LIKE rlgrap-filename.

START-OF-SELECTION.

  v_filename_string = p_file.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = v_filename_string
      filetype                      = 'ASC'
      has_field_separator           = 'X'
*     HEADER_LENGTH                 = 0
*     READ_BY_LINE                  = 'X'
      dat_mode                      = ''
*   IMPORTING
*     FILELENGTH                    =
*     HEADER                        =
    TABLES
      data_tab                      = i_text_data
    EXCEPTIONS
      file_open_error               = 1
      file_read_error               = 2
      no_batch                      = 3
      gui_refuse_filetransfer       = 4
      invalid_type                  = 5
      no_authority                  = 6
      unknown_error                 = 7
      bad_data_format               = 8
      header_not_allowed            = 9
      separator_not_allowed         = 10
      header_too_long               = 11
      unknown_dp_error              = 12
      access_denied                 = 13
      dp_out_of_memory              = 14
      disk_full                     = 15
      dp_timeout                    = 16
      OTHERS                        = 17.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
      i_field_seperator          = 'X'
*     I_LINE_HEADER              =
      i_tab_raw_data             = i_text_data
      i_filename                 = p_file
    TABLES
      i_tab_converted_data       = itab
    EXCEPTIONS
      conversion_failed          = 1
      OTHERS                     = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. You may to have add some extra coding to check whether the file is an excel file or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 21:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912373#M57365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T21:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912374#M57366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, i have data  in .txt which i am able to upload using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;this data needs to be inserted into r/3 database table.&lt;/P&gt;&lt;P&gt;Problem: i have 5 fields in r/3 table and i have data for 4 fields from sql.&lt;/P&gt;&lt;P&gt;the first field MANDT , I have no values for it and i donot want to fill during inserting .&lt;/P&gt;&lt;P&gt;According to SAP Standard insertion the first values sits in first field.&lt;/P&gt;&lt;P&gt;how can i fill data from my .txt file into r/3 table without filling MANDT.&lt;/P&gt;&lt;P&gt;azee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2005 11:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912374#M57366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-30T11:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912375#M57367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, i have data  in .txt which i am able to upload using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;this data needs to be inserted into r/3 database table.&lt;/P&gt;&lt;P&gt;Problem: i have 5 fields in r/3 table and i have data for 4 fields from sql.&lt;/P&gt;&lt;P&gt;the first field MANDT , I have no values for it and i donot want to fill during inserting .&lt;/P&gt;&lt;P&gt;According to SAP Standard insertion the first values sits in first field.&lt;/P&gt;&lt;P&gt;how can i fill data from my .txt file into r/3 table without filling MANDT.&lt;/P&gt;&lt;P&gt;azee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2005 12:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912375#M57367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-30T12:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912376#M57368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill MANDT field with SY-MANDT and the rest of the four fields from the uploaded text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 20:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912376#M57368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T20:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912377#M57369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to leave the MANDT field blank than leave it blank in your internal table and while inserting use the key word 'CLIENT SPECIFIED'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 21:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912377#M57369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T21:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912378#M57370</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;Even i was facing the problem when i was trying to load the excel into sap, i tried doing it as &lt;/P&gt;&lt;P&gt;changing the file name as .csv&lt;/P&gt;&lt;P&gt;suppose ur excel is "ABC.XLS"  try to change it to ".CSV"  file and then change in the gui_upload function &lt;/P&gt;&lt;P&gt;file type  ABC.CSV&lt;/P&gt;&lt;P&gt;then check the program, if still you get a problem let me know.&lt;/P&gt;&lt;P&gt;else you can do with another function module  i,e  ALSM_EXCEL_TO_INTERNAL_TABLE this also wrks exactly fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Bhavana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 13:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912378#M57370</guid>
      <dc:creator>former_member233090</dc:creator>
      <dc:date>2010-03-07T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912379#M57371</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 have data in .xls format and tried using GUI_UPLOAD but the internal table has junk values .Then i converted .xls into .csv and    changed    FILETYPE  = '.CSV' &lt;/P&gt;&lt;P&gt;but im geeting an error ( some thing like invalid file type).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; And I know we can use ALSM_EXCEL_TO_INTERNAL_TABLE function module to upload excel but im working in solution manager 7.0 which does not have ALSM_EXCEL_TO_INTERNAL_TABLE function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 06:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912379#M57371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T06:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912380#M57372</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;I am getting the same Sy-subrc = 13 problem mentioned above, and i have done all what u have said here. but it is still not getting solved. I am using GUI_Upload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 16:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912380#M57372</guid>
      <dc:creator>dayakar_sama</dc:creator>
      <dc:date>2012-02-06T16:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912381#M57373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you see Rich's answer above? Try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 16:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/912381#M57373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-06T16:23:48Z</dc:date>
    </item>
  </channel>
</rss>

