<?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: File Location When Using Open Dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268698#M492631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Where is your file? On Appln server or on Local machine?&lt;/P&gt;&lt;P&gt;this code works when the file is in Server.&lt;/P&gt;&lt;P&gt;If it is on local system, don't use this DATSET concept just use GUI_UPLOAD etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 09:49:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T09:49:17Z</dc:date>
    <item>
      <title>File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268696#M492629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys/Dolls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problem with the following piece of code.&lt;/P&gt;&lt;P&gt;I think its something to do with the location of the file.&lt;/P&gt;&lt;P&gt;It seems that the open datasource command requires the file to reside on the server but I need my file to reside at C:\LOCALDATA.&lt;/P&gt;&lt;P&gt;Code below returns a sy-subrc of 8; any ideas on how I can make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

C_IFILE = 'C:LOCALDATAHRLAB-070514.TXT'.
C_EFILE = 'C:LOCALDATAHRLAB-070514E01.TXT'.


  OPEN DATASET C_IFILE FOR INPUT IN TEXT MODE.
  IF SY-SUBRC NE 0.
    MESSAGE E001(Z1) WITH C_IFILE.
    EXIT.
  ENDIF.

  OPEN DATASET C_EFILE FOR OUTPUT IN TEXT MODE.
  IF SY-SUBRC NE 0.
    MESSAGE E002(Z1) WITH C_EFILE.
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268696#M492629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268697#M492630</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 to use CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD, if y ou wish to download to your PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268697#M492630</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2007-05-15T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268698#M492631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Where is your file? On Appln server or on Local machine?&lt;/P&gt;&lt;P&gt;this code works when the file is in Server.&lt;/P&gt;&lt;P&gt;If it is on local system, don't use this DATSET concept just use GUI_UPLOAD etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268698#M492631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268699#M492632</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;  Open data set is used only for files on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268699#M492632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268700#M492633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET is used to open files in application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use  GUI_UPLOAD   FM and store the data in internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268700#M492633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268701#M492634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or transfer yor file to application server with tcode CG3Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268701#M492634</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-05-15T09:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268702#M492635</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've tried the code as suggested but don't seem to be getting the contents of the file within the internal table? The value of sy-subrc is 0 after the 'GUI_UPLOAD' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ld_filename  TYPE string.

DATA: begin of it_datatab occurs 0,
        row(500) type c,
      end of it_datatab.

  ld_filename = ''C:LOCALDATAHRLAB-070514.TXT'.

  call function 'GUI_UPLOAD'
       exporting
            filename         = ld_filename
            filetype         = 'ASC'
       tables
            data_tab         = it_datatab[]
       exceptions
            file_open_error  = 1
            file_write_error = 2
            others           = 3.
  IF SY-SUBRC NE 0.
    MESSAGE E001(Z1) WITH C_IFILE.
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 12:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268702#M492635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T12:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268703#M492636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't seem to be getting the contents of the file within the internal table? The value of sy-subrc is 0 after the 'GUI_UPLOAD' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 13:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268703#M492636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T13:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268704#M492637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would help if the file wasn't blank - sorry all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 13:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268704#M492637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: File Location When Using Open Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268705#M492638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would help if the file wasn't blank - sorry all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 13:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-location-when-using-open-dataset/m-p/2268705#M492638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T13:32:30Z</dc:date>
    </item>
  </channel>
</rss>

