<?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/file error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393424#M1044617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GUI_UPLOAD is from workstation to application server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your path is on the app server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try open dataset....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheerz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 11:00:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T11:00:53Z</dc:date>
    <item>
      <title>GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393423#M1044616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have tested (tcode SE37) the FM with following parameters (in the DATA_TAB is one record, only text):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Parameter               &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FILENAME                        /usr/sap/tmp/TEST.TXT&lt;/P&gt;&lt;P&gt; FILETYPE                        ASC&lt;/P&gt;&lt;P&gt; HAS_FIELD_SEPARATOR&lt;/P&gt;&lt;P&gt; HEADER_LENGTH                   0&lt;/P&gt;&lt;P&gt; READ_BY_LINE                    X&lt;/P&gt;&lt;P&gt; DAT_MODE&lt;/P&gt;&lt;P&gt; CODEPAGE&lt;/P&gt;&lt;P&gt; IGNORE_CERR                     X&lt;/P&gt;&lt;P&gt; REPLACEMENT                     #&lt;/P&gt;&lt;P&gt; CHECK_BOM&lt;/P&gt;&lt;P&gt; VIRUS_SCAN_PROFILE&lt;/P&gt;&lt;P&gt; NO_AUTH_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA_TAB                          (in the DATA_TAB is one record, only text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test the FM I'll get the error-code = 1 (file_open_error).&lt;/P&gt;&lt;P&gt;I don't know why the FM could'nt open the  file ( i guess it's not a problem of authorization)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What problem can it be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lutz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 10:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393423#M1044616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393424#M1044617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GUI_UPLOAD is from workstation to application server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your path is on the app server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try open dataset....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheerz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 11:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393424#M1044617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T11:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393425#M1044618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here all information on open dataset  &lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3c99358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3c99358411d1829f0000e829fbfe/content.htm&lt;/A&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;Example for read access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA FNAME(60) VALUE 'myfile'.

OPEN DATASET FNAME FOR INPUT.

IF SY-SUBRC = 0.
  WRITE / 'File opened'.
  .....
ELSE.
  WRITE / 'File not found'.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example opens the file "myfile" for reading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once file is open read it like this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ DATASET &amp;lt;dsn&amp;gt; INTO &amp;lt;f&amp;gt; [LENGTH &amp;lt;len&amp;gt;].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stephan Kaminski on Aug 27, 2008 1:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 11:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393425#M1044618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T11:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393426#M1044619</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;GUI_UPLOAD works for presentation server only for application server u have to use DATASET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Local Variables&lt;/P&gt;&lt;P&gt;  DATA : l_file       TYPE string,&lt;/P&gt;&lt;P&gt;         l_line(1000) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Clear&lt;/P&gt;&lt;P&gt;  CLEAR : l_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_file = p_aifile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Read the data from application server file.&lt;/P&gt;&lt;P&gt;  OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE c_ok.&lt;/P&gt;&lt;P&gt;    MESSAGE e001.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Get all the records from the specified location.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET l_file INTO l_line.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE c_ok.&lt;/P&gt;&lt;P&gt;      EXIT.&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;      SPLIT l_line AT cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;                      INTO st_ipfile-anlkl&lt;/P&gt;&lt;P&gt;                           st_ipfile-txt50&lt;/P&gt;&lt;P&gt;                           st_ipfile-txa50&lt;/P&gt;&lt;P&gt;                           st_ipfile-anlhtx&lt;/P&gt;&lt;P&gt;                           st_ipfile-sernr&lt;/P&gt;&lt;P&gt;                           st_ipfile-invnr&lt;/P&gt;&lt;P&gt;                           st_ipfile-aktiv&lt;/P&gt;&lt;P&gt;                           st_ipfile-invzu&lt;/P&gt;&lt;P&gt;                           st_ipfile-kostl&lt;/P&gt;&lt;P&gt;                           st_ipfile-raumn&lt;/P&gt;&lt;P&gt;                           st_ipfile-ord41&lt;/P&gt;&lt;P&gt;                           st_ipfile-gdlgrp&lt;/P&gt;&lt;P&gt;                           st_ipfile-herst&lt;/P&gt;&lt;P&gt;                           st_ipfile-typbz&lt;/P&gt;&lt;P&gt;                           st_ipfile-afabe&lt;/P&gt;&lt;P&gt;                           st_ipfile-afasl&lt;/P&gt;&lt;P&gt;                           st_ipfile-ndjar&lt;/P&gt;&lt;P&gt;                           st_ipfile-ndper&lt;/P&gt;&lt;P&gt;                           st_ipfile-tafabe&lt;/P&gt;&lt;P&gt;                           st_ipfile-tafasl&lt;/P&gt;&lt;P&gt;                           st_ipfile-tndjar&lt;/P&gt;&lt;P&gt;                           st_ipfile-tndper&lt;/P&gt;&lt;P&gt;                           st_ipfile-anbtr01&lt;/P&gt;&lt;P&gt;                           st_ipfile-anbtr02&lt;/P&gt;&lt;P&gt;                           st_ipfile-anbtr03&lt;/P&gt;&lt;P&gt;                           st_ipfile-anbtr04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND st_ipfile TO it_ipfile.&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;  ENDDO.&lt;/P&gt;&lt;P&gt;  	&lt;/P&gt;&lt;P&gt;*--Close dataset&lt;/P&gt;&lt;P&gt;CLOSE DATASET l_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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 11:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393426#M1044619</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-08-27T11:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393427#M1044620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u r trying to upload data from application server rather than presentation server.&lt;/P&gt;&lt;P&gt;FILENAME &lt;STRONG&gt;/usr/sap/tmp/TEST.TXT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM only uploads data from presentation server not from application server. To read or write data to application server use &lt;STRONG&gt;open dataset&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 11:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393427#M1044620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T11:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393428#M1044621</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 think your input file is there in application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = /usr/sap/tmp/TEST.TXT&lt;/P&gt;&lt;P&gt; open dataset p_file for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        do.&lt;/P&gt;&lt;P&gt;          read dataset p_file into ls_input-wa_string.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            append ls_input to lt_input.&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 p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to read from presentaion server use GUI_UPLOAD function module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 11:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393428#M1044621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD problem/file error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393429#M1044622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a little confused....&lt;/P&gt;&lt;P&gt;I want to upload a file from PC to a directory of an application server (tcode AL11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The description of the FM GUI_UPLOAD is following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module loads a file from the PC to the server. Data can be transferred binarily or as text. Numbers and date fields can be interpreted according to the user settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a misunderstanding in the description?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lutz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 13:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-file-error/m-p/4393429#M1044622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T13:19:16Z</dc:date>
    </item>
  </channel>
</rss>

