<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194319#M468154</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 works but dat filetype still throw an exception..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reema jain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 08:45:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T08:45:53Z</dc:date>
    <item>
      <title>GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194306#M468141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i call the function gui_upload then it cannot read filetype"'TXT" or "DAT".&lt;/P&gt;&lt;P&gt;it only read "ASC". if i give filetype "TXT" or "DAT" exception 5 occur.  please check the code.. &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                      = 'C:\test.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'TXT'&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;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&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                      = itab&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;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;test.txt file:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bp11 lf11 d004 100&lt;/P&gt;&lt;P&gt;bp12 lf12 d005 2000	&lt;/P&gt;&lt;P&gt;bp13 lf01 d003 2332		&lt;/P&gt;&lt;P&gt;bp14 lf01 d003 2332&lt;/P&gt;&lt;P&gt;bp12 lf12 d005 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reema jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 07:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194306#M468141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T07:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194307#M468142</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 keep the filetype parameter as "ASC" even if you are uploading a TXT file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 07:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194307#M468142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194308#M468143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   There is no TXT Type .. so give either ASC OR DAT or BIN type as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:test.txt'
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* VIRUS_SCAN_PROFILE =
* NO_AUTH_CHECK = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
tables
data_tab = itab
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&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 07:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194308#M468143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T07:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194309#M468144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Reema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is something from help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     File Type (ASC or BIN)                                                                                &lt;/P&gt;&lt;P&gt;Description                                                                                &lt;/P&gt;&lt;P&gt;Describes how the upload file is read.                                                                                &lt;/P&gt;&lt;P&gt;Value range                                                                                &lt;/P&gt;&lt;P&gt;o   'BIN'                                                                                &lt;/P&gt;&lt;P&gt;A binary representation of the internal table is read from the file.                                                                                &lt;/P&gt;&lt;P&gt;No conversion or interpretation is carried out. Usually, this produces                                                                                &lt;/P&gt;&lt;P&gt;meaningful results only if the internal table consists of a single                                                                                &lt;/P&gt;&lt;P&gt;column of type 'X'.                                                                                &lt;/P&gt;&lt;P&gt;o   'DAT'                                                                                &lt;/P&gt;&lt;P&gt;The components of the internal table are filled from the file. If the                                                                                &lt;/P&gt;&lt;P&gt;table contains more than one column, the entries in the file must be                                                                                &lt;/P&gt;&lt;P&gt;separated by tabs. Conversion exits are not carried out.                                                                                &lt;/P&gt;&lt;P&gt;For the different data types, the following applies:                                                                                &lt;/P&gt;&lt;P&gt;-   I or N or P or F                                                                                &lt;/P&gt;&lt;P&gt;The numbers must be formatted according to the decimal representation                                                                                &lt;/P&gt;&lt;P&gt;defined in the user settings.                                                                                &lt;/P&gt;&lt;P&gt;-   D                                                                                &lt;/P&gt;&lt;P&gt;The date must be formatted according to the date format defined in            &lt;/P&gt;&lt;P&gt;          the                                                                                &lt;/P&gt;&lt;P&gt;user settings.                                                                                &lt;/P&gt;&lt;P&gt;-   T                                                                                &lt;/P&gt;&lt;P&gt;The time must have format hh:mm:ss.                                                                                &lt;/P&gt;&lt;P&gt;o   'ASC'.                                                                                &lt;/P&gt;&lt;P&gt;The components of the internal table are filled from the file. Only data                                                                                &lt;/P&gt;&lt;P&gt;types of fixed length are allowed. The data must be contained on the                                                                                &lt;/P&gt;&lt;P&gt;file in its entire length.                                                                                &lt;/P&gt;&lt;P&gt;Default                                                                                &lt;/P&gt;&lt;P&gt;ASC                                                                              &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194309#M468144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194310#M468145</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 have the extension for the filename as TXT but not the FILETYPE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   check out the available filetypes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   'ASC' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASCII format. The table is transferred as text. The conversion exits are&lt;/P&gt;&lt;P&gt;carried out. The output format additionally depends on the parameters&lt;/P&gt;&lt;P&gt;CODEPAGE, TRUNC_TRAILING_BLANKS, and TRUNC_TRAILING_BLANKS_EOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'IBM' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASCII format with IBM codepage conversion (DOS). This format corresponds&lt;/P&gt;&lt;P&gt;to the 'ASC' format when using target codepage 1103. This codepage is&lt;/P&gt;&lt;P&gt;often used for data exchange by disc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'DAT' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column-by-column transfer. With this format, the data is transferred as&lt;/P&gt;&lt;P&gt;with ASC text. However, no conversion exists are carried out and the&lt;/P&gt;&lt;P&gt;columns are separated by tab characters. This format creates files that&lt;/P&gt;&lt;P&gt;can be uploaded again with gui_upload or ws_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'DBF' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is downloaded in dBase format. Because in this format the file&lt;/P&gt;&lt;P&gt;types of the individual columns are included, import problems, for&lt;/P&gt;&lt;P&gt;example, into Microsoft Excel can be avoided, especially when&lt;/P&gt;&lt;P&gt;interpreting numeric values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'WK1' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is downloaded in Lotus 1-2-3 format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'BIN' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary format. The data is transferred in binary format. There is no&lt;/P&gt;&lt;P&gt;formatting and no codepage conversion. The data is interpreted row by&lt;/P&gt;&lt;P&gt;row and not formatted in columns. Specify the length of the data in&lt;/P&gt;&lt;P&gt;parameter BIN_FILESIZE. The table should consist of a column of type X,&lt;/P&gt;&lt;P&gt;because especially in Unicode systems the conversion of structured data&lt;/P&gt;&lt;P&gt;into binary data leads to errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194310#M468145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194311#M468146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            In the FM kepp value of Filetype = 'ASC', using this u can also upload the .txt files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194311#M468146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194312#M468147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_nom = 'C:\test.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        logical_filename = w_nom&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;parameter_1      = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        file_name        = w_fichier&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_not_found   = 1&lt;/P&gt;&lt;P&gt;        OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET w_fichier FOR input IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;            APPEND error msg&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      do.&lt;/P&gt;&lt;P&gt;      READ DATASET w_fichier INTO ws_file.&lt;/P&gt;&lt;P&gt;      IF sy-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        APPEND ws_file TO wt_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      enddo.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET w_fichier .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Reward if helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sooness!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194312#M468147</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-04-27T08:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194313#M468148</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;As i have already mentioned dat filetype also throw a same exception.. If i used asc then it will pick some wrong data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reema jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194313#M468148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194314#M468149</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 i Keep the filetype parameter as "ASC" then it pick the wrong data from the file...&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;Reema jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194314#M468149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194315#M468150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading the file from the presentation server only...&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;Reema jain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194315#M468150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194316#M468151</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 for filtype ASC, wrong data is uploaded, then recreate the TXT file which you are uploading. Create the file in Excel and goto File-&amp;gt;Save as-&amp;gt; select file type as TAB delimited and save the file with .txt extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now try to upload the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194316#M468151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194317#M468152</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;Use the method of the cl_gui_frontend_services class....check the following sample code...its working for file directly created from notepad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lv_bukrs type bukrs.&lt;/P&gt;&lt;P&gt;data itab type table of bukrs with header line.&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                = 'C:\test.txt'&lt;/P&gt;&lt;P&gt;    FILETYPE                = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR     = 'X'&lt;/P&gt;&lt;/LI&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;LI level="1" type="ul"&gt;&lt;P&gt;   DAT_MODE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CODEPAGE                = SPACE&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;   VIRUS_SCAN_PROFILE      =&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;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab                = itab[]&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;    NOT_SUPPORTED_BY_GUI    = 17&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI            = 18&lt;/P&gt;&lt;P&gt;    others                  = 19&lt;/P&gt;&lt;P&gt;        .&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;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab.&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;P&gt;my file has the following entries&lt;/P&gt;&lt;P&gt;BP01&lt;/P&gt;&lt;P&gt;BP02&lt;/P&gt;&lt;P&gt;BP03&lt;/P&gt;&lt;P&gt;BP04&lt;/P&gt;&lt;P&gt;BP05&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194317#M468152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194318#M468153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following to get the correct data in upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open excel, Write the flat file data. Save the file as TAB DELIMITED (.TXT) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use GUI_UPLOAD as follows:&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 = 'C:\test.txt'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&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;LI level="1" type="ul"&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;/LI&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 = itab&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;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also your internal table should be having the appropriate field length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this. &amp;amp; don't forget to give points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194318#M468153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_upload problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194319#M468154</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 works but dat filetype still throw an exception..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reema jain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem/m-p/2194319#M468154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:45:53Z</dc:date>
    </item>
  </channel>
</rss>

