<?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: Open data set error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247877#M1383180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remove DOT. the FM is not giving any files list into DIRLIST.  If i keep DOT i am getting 2 files into DIRLIST.&lt;/P&gt;&lt;P&gt;Is anything wrong in my code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2009 02:52:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-09T02:52:34Z</dc:date>
    <item>
      <title>Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247874#M1383177</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 am facing problem on OPEN DATASET.  I want to read files from Dev server.&lt;/P&gt;&lt;P&gt;I used FM : EPS_GET_DIRECTORY_LISTING to get the directory. &lt;/P&gt;&lt;P&gt;i am getting 2 files into my itab from that one file  i am trying to reading.  Error message is : &lt;STRONG&gt;No such file or directory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; dirname = '/home/sap/empdata.d/'.&lt;/P&gt;&lt;P&gt;   call function 'EPS_GET_DIRECTORY_LISTING'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;             dir_name               = dirname&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;             dir_list               = dirlist&lt;/P&gt;&lt;P&gt;loop at dirlist.&lt;/P&gt;&lt;P&gt;concatenate dirname dirlist-name into lv_file.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; open dataset  lv_file for input in text mode message errtxt.&lt;/P&gt;&lt;P&gt; if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; errtxt.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247874#M1383177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T02:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247875#M1383178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Hope this link help you.|http://www.sapfans.com/sapfans/alex.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247875#M1383178</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-10-09T02:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247876#M1383179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
I think that the problem with  DOT(.) in the directory path.
Try 
&lt;PRE&gt;&lt;CODE&gt;dirname = '/home/sap/empdatad/'.&lt;/CODE&gt;&lt;/PRE&gt;
Instead of 
&lt;PRE&gt;&lt;CODE&gt;dirname = '/home/sap/empdata.d/'.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247876#M1383179</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-09T02:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247877#M1383180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remove DOT. the FM is not giving any files list into DIRLIST.  If i keep DOT i am getting 2 files into DIRLIST.&lt;/P&gt;&lt;P&gt;Is anything wrong in my code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247877#M1383180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T02:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247878#M1383181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&amp;lt;li&amp;gt;add ENCODING DEFAULT to OPEN DATA SET and try.
&amp;lt;li&amp;gt;Doubt: When OPEN DATASET is run what is the file name you are getting and check that in original directory through AL11. 
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247878#M1383181</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-09T02:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247879#M1383182</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;Funtcion module return all file names DIRLIST related to that directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at dirlist.&lt;/P&gt;&lt;P&gt;concatenate dirname dirlist-name into lv_file.&lt;/P&gt;&lt;P&gt;open dataset lv_file for input in text mode message errtxt.&lt;/P&gt;&lt;P&gt;exit.&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;&lt;/P&gt;&lt;P&gt;dirname = '/home/sap/empdata.d/'.&lt;/P&gt;&lt;P&gt;call function 'EPS_GET_DIRECTORY_LISTING'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dir_name = dirname&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dir_list = dirlist&lt;/P&gt;&lt;P&gt;loop at dirlist.&lt;/P&gt;&lt;P&gt;concatenate dirname dirlist-name into lv_file.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset lv_file for input in text mode message errtxt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247879#M1383182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T03:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247880#M1383183</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;My lv_file contains space in file name. Is that cause error. The name i am getting is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/home/sap/empdata.d/2009_1008 TMS Dev.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that would be any problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247880#M1383183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T03:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247881#M1383184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code worked for me:&lt;/P&gt;&lt;P&gt;lv_file is case sensitve.. the path need to exactly same as it shows in AL11...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: dirname TYPE epsf-epsdirnam.
DATA: dirlist TYPE STANDARD TABLE OF epsfili WITH HEADER LINE.
DATA: lv_file TYPE string.

dirname = '/usr/sap/tmp/'.
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
  EXPORTING
    dir_name = dirname
  TABLES
    dir_list = dirlist.

LOOP AT dirlist.
  CONCATENATE dirname dirlist-name INTO lv_file.
  EXIT.
ENDLOOP.

OPEN DATASET lv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
  WRITE :/ sy-subrc.
  EXIT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247881#M1383184</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-10-09T03:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247882#M1383185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J@Y,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i see AL11, I am unable to find  the path &lt;STRONG&gt;/home/sap/empdata.d/&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;But my BASIS person said he put 2 files in server. And the function module giving 2 file names.&lt;/P&gt;&lt;P&gt;Any specific directory i needs to see in AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247882#M1383185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T03:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247883#M1383186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tr. AL11 &amp;gt; search for your directory name... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you see the directory double click on the folder and double click on the file name and on the top you can see the file name as its stored in server... the same case and spaces need to be pulled in lv_file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247883#M1383186</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-10-09T03:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247884#M1383187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hey, 
Try this program. Its not giving any problem.
 &lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_notepad.
 DATA dir_list TYPE TABLE OF epsfili." WITH HEADER LINE.
 DATA w_dir_list LIKE LINE OF dir_list.
 DATA: path  TYPE epsf-epsdirnam VALUE '/tmp/'.

 CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
   EXPORTING
     dir_name = path
   TABLES
     dir_list = dir_list.

 DATA:file TYPE char80.
 LOOP AT dir_list INTO w_dir_list.
   CONCATENATE path w_dir_list-name INTO file.
   EXIT.
 ENDLOOP.
 DATA msg TYPE string.
 OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE msg.
 IF sy-subrc NE 0.
   WRITE :/ msg.
   EXIT.
 ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247884#M1383187</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-09T03:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247885#M1383188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hey dear, 
What is the problem you found ?

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247885#M1383188</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-09T03:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247886#M1383189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with your code. Still same error i am getting. And in AL11 i am unable to find my file path. &lt;/P&gt;&lt;P&gt;i have only below list in AL11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIR_ATRA                     /usr/sap/PD1/DVEBMGS00/data&lt;/P&gt;&lt;P&gt;DIR_BINARY                   /usr/sap/PD1/SYS/exe/run&lt;/P&gt;&lt;P&gt;DIR_CT_LOGGING               /usr/sap/PD1/SYS/global&lt;/P&gt;&lt;P&gt;DIR_CT_RUN                   /usr/sap/PD1/SYS/exe/ctrun&lt;/P&gt;&lt;P&gt;DIR_DATA                     /usr/sap/PD1/DVEBMGS00/data&lt;/P&gt;&lt;P&gt;DIR_DBMS                     /usr/sap/PD1/SYS/SAPDB&lt;/P&gt;&lt;P&gt;DIR_EXECUTABLE               /usr/sap/PD1/SYS/exe/run&lt;/P&gt;&lt;P&gt;DIR_EXE_ROOT                 /usr/sap/PD1/SYS/exe&lt;/P&gt;&lt;P&gt;DIR_GEN                      /usr/sap/PD1/SYS/gen/dbg&lt;/P&gt;&lt;P&gt;DIR_GEN_ROOT                 /usr/sap/PD1/SYS/gen&lt;/P&gt;&lt;P&gt;DIR_GLOBAL                   /usr/sap/PD1/SYS/global&lt;/P&gt;&lt;P&gt;DIR_GRAPH_EXE                /usr/sap/PD1/SYS/exe/run&lt;/P&gt;&lt;P&gt;DIR_GRAPH_LIB                /usr/sap/PD1/SYS/exe/run&lt;/P&gt;&lt;P&gt;DIR_HOME                     /usr/sap/PD1/DVEBMGS00/work&lt;/P&gt;&lt;P&gt;DIR_INF_INFORMIXDIR          /informix/PD1&lt;/P&gt;&lt;P&gt;DIR_INSTALL                  /usr/sap/PD1/SYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i used old path, i am able to read files. My old path is  : &lt;STRONG&gt;/home/sap/data.d/2009011.txt.&lt;/STRONG&gt;  This file i can read. Only deference i found in OLD and NEW  is the file name dont contain any spaces.  I am searching options to upload a file into server. Please let me know t-code to upload file into server.&lt;/P&gt;&lt;P&gt;I already tried CG3Z in my system it is not existed. I am using 4.0 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 04:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247886#M1383189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T04:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Open data set error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247887#M1383190</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;Problem got solved. It is because of file name contains space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks one to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 04:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-error/m-p/6247887#M1383190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T04:16:59Z</dc:date>
    </item>
  </channel>
</rss>

