<?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: Help me on using GUI_UPLOAD function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983921#M402044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.
  gd_file = p_infile.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = gd_file
      has_field_separator     = 'X'  "file is TAB delimited
    TABLES
      data_tab                = it_record
    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 NE 0.
      write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
      skip.
    endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Upload Tab delimited file from PC into internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Refer this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_uptabpc.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_uptabpc.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 04:44:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-27T04:44:06Z</dc:date>
    <item>
      <title>Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983908#M402031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear my friends,&lt;/P&gt;&lt;P&gt;I am using GUI_UPLOAD function to upload a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  filename contain file path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FILENAME                      = filepath&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  filetype is ASC&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FILETYPE                      = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Use tab key to seperate field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    HAS_FIELD_SEPARATOR           = ','&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Internal table keep data from file by function GUI_UPLOAD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;        data_tab   =   tblTrantable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it did not work for HAS_FIELD_SEPARATOR option.&lt;/P&gt;&lt;P&gt;although i tried to use HAS_FIELD_SEPARATOR = '#'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but system still return by fix lengh data column not by separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;note : my SAP version = 4.6C&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, &lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Quoc Luc Nguyen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Quoc Luc Nguyen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983908#M402031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983909#M402032</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 specifying 'X' for has field separator parameter. or try calling ws_upload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983909#M402032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983910#M402033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you mention the error that you have got when using this function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983910#M402033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983911#M402034</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;set has field separartor to 'x'.&lt;/P&gt;&lt;P&gt;chk this FM for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       FILENAME                      = W_FILENAME1&lt;/P&gt;&lt;P&gt;      FILETYPE                      = W_FILETYPE1&lt;/P&gt;&lt;P&gt;      HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DAT_MODE                      = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       DATA_TAB                      = IT_UPLOAD&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;      FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;      NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;      GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;      INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;      NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;      UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;      BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;      HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;      SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;      HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;      UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;      ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;      DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;      DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;      DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;      OTHERS                        = 17.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983911#M402034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983912#M402035</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;try this &lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983912#M402035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983913#M402036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear my friends,&lt;/P&gt;&lt;P&gt;i have tried many times, but it still seprate column by fix lengh which is defined on internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex : my data file contain&lt;/P&gt;&lt;P&gt;Column1,Column2,Column3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;internal table : &lt;/P&gt;&lt;P&gt;types : begin of Trantable,&lt;/P&gt;&lt;P&gt;            GLAccount(10) type C,&lt;/P&gt;&lt;P&gt;            Amount(13) type C,&lt;/P&gt;&lt;P&gt;            TaxCode(2) type C&lt;/P&gt;&lt;P&gt;        end of Trantable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i write data after upload&lt;/P&gt;&lt;P&gt;result always :&lt;/P&gt;&lt;P&gt;GL Account =  Column1,Co&lt;/P&gt;&lt;P&gt;Amount = lumn2,Column3 &lt;/P&gt;&lt;P&gt;TaxCode = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this mean, system separate by fixlenght, not by separator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983913#M402036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983914#M402037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quoc , &lt;/P&gt;&lt;P&gt;   What is the saperator you are using in the file , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 03:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983914#M402037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983915#M402038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear my friend,&lt;/P&gt;&lt;P&gt;first time, i am use TAB for separator but it did not work.&lt;/P&gt;&lt;P&gt;so, now i am using COMMA for separator but it still does not work&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983915#M402038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983916#M402039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi quoc,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      specify the seperator as 'X',it will work.&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983916#M402039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983917#M402040</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 tab separator and set dat mode = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983917#M402040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983918#M402041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear my friends,&lt;/P&gt;&lt;P&gt;thanks your time so much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried on two different SAP server,&lt;/P&gt;&lt;P&gt;it work on one SAP server but it does not work on other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, i don not know the reason.&lt;/P&gt;&lt;P&gt;is there any special setting on other server !?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983918#M402041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983919#M402042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quoc , &lt;/P&gt;&lt;P&gt;  Use a tab delimited file and use the following statement&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;   HAS_FIELD_SEPARATOR           = '#'&amp;lt;/b&amp;gt; in you r FM. This will work.&lt;/P&gt;&lt;P&gt;Here is a sample code for the same&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types : begin of Trantable,
GLAccount(10) type C,
Amount(13) type C,
TaxCode(2) type C,
end of Trantable.


Data : it_1 type table of trantable ,
       wa_1 type trantable.

data : v_file type string.

v_file = 'c:arun.txt'."File Name


CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = v_file
*   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = '#'
*   HEADER_LENGTH                 = 0
*   READ_BY_LINE                  = 'X'
*   DAT_MODE                      = ' '
* IMPORTING
*   FILELENGTH                    =
*   HEADER                        =
  tables
    data_tab                      = it_1.
* 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.


loop at it_1 into wa_1.


endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983919#M402042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983920#M402043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear my friends,&lt;/P&gt;&lt;P&gt;Is there any function with the same feature with GUI_UPLOAD,&lt;/P&gt;&lt;P&gt;may be, i will try other function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983920#M402043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983921#M402044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.
  gd_file = p_infile.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = gd_file
      has_field_separator     = 'X'  "file is TAB delimited
    TABLES
      data_tab                = it_record
    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 NE 0.
      write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
      skip.
    endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Upload Tab delimited file from PC into internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Refer this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_uptabpc.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_uptabpc.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 04:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983921#M402044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T04:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help me on using GUI_UPLOAD function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983922#M402045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You should try with 'X' !&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehfuze&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-on-using-gui-upload-function/m-p/1983922#M402045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:15:32Z</dc:date>
    </item>
  </channel>
</rss>

