<?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 dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158690#M119727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. As already suggested,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If u see the FM,&lt;/P&gt;&lt;P&gt;   it gives the list&lt;/P&gt;&lt;P&gt;   ONLY FILE NAME (WITH OUT THE PATH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In Open DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   we have to GIVE THE FULLL PATH + FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (only file name would not work )&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2006 05:13:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-09T05:13:11Z</dc:date>
    <item>
      <title>open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158685#M119722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open dataset returns sy-subrc = 8 (file does not exist)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem reading files in a certain directory.  If I move these files to the home directory (/usr/sap/RD1/DVEBMGS20 the open dataset returns sy-subrc = 0.  However, when I move to the directory that has been created for interfaces /usr/sap/RD1/Interfaces/ then I cannot read the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get list of files in the directory&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                     = p_dir&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     FILE_MASK                    = l_file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_COUNTER                 = w_file_counter&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DIR_LIST                     = i_files&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      INVALID_EPS_SUBDIR           = 1&lt;/P&gt;&lt;P&gt;      SAPGPARAM_FAILED             = 2&lt;/P&gt;&lt;P&gt;      BUILD_DIRECTORY_FAILED       = 3&lt;/P&gt;&lt;P&gt;      NO_AUTHORIZATION             = 4&lt;/P&gt;&lt;P&gt;      READ_DIRECTORY_FAILED        = 5&lt;/P&gt;&lt;P&gt;      TOO_MANY_READ_ERRORS         = 6&lt;/P&gt;&lt;P&gt;      EMPTY_DIRECTORY_LIST         = 7&lt;/P&gt;&lt;P&gt;      OTHERS                       = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at i_files.&lt;/P&gt;&lt;P&gt;     OPEN DATASET I_FILES-NAME FOR INPUT MESSAGE l_msg&lt;/P&gt;&lt;P&gt;      IN text MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;     F_RCODE = sy-subrc.        &lt;/P&gt;&lt;P&gt;     IF F_RCODE &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*Error handling&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The files are obviously in the directory as they are returned by the above function module.  Is there a setting or config required to make files in this directory readable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our basis support is 3rd party and pretty much non-existent.  I've been advised that the permissions are the problem.  Not a unix expert but I figure if that was the case then I would not be able to read the files in any directory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Urgent assistance required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jill&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 02:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158685#M119722</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-02-09T02:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158686#M119723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI jill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Lower case&lt;/P&gt;&lt;P&gt;   UNIX/AIX system is CASE-SENSITIVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just make sure, the FULL NAME (WITH PATH)&lt;/P&gt;&lt;P&gt;    is exactly matching the lower-case/upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. U can take help of AL11 tcode&lt;/P&gt;&lt;P&gt;   to see the full file name (along with the path).&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 04:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158686#M119723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-09T04:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158687#M119724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you are getting the list after your call to this function module, I am ruling out the permission issue. The reason for you to be not able to read the file is that the field 'I_FILES-NAME' contains only the filename, not the directory. So you have to concatenate that with the filename before you do OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP at i_files.
  CONCATENATE p_dir
              i_files-name
         INTO myfilename separated by '/'.
  CONDENSE myfilename NO-GAPS.
  OPEN DATASET myfilename FOR INPUT 
                            MESSAGE l_msg
                       IN text MODE ENCODING DEFAULT.
  F_RCODE = sy-subrc. 
  IF F_RCODE &amp;lt;&amp;gt; 0.
*Error handling
.....
....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 04:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158687#M119724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-09T04:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158688#M119725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amit - my file names are correct.  As shown I use a FM to return the file names found in as particular directory  leaving no room for error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 04:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158688#M119725</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-02-09T04:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158689#M119726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if you have appropriate authorizations on the second folder like read and write. &lt;/P&gt;&lt;P&gt;This is a very common issue on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 05:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158689#M119726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-09T05:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158690#M119727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. As already suggested,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If u see the FM,&lt;/P&gt;&lt;P&gt;   it gives the list&lt;/P&gt;&lt;P&gt;   ONLY FILE NAME (WITH OUT THE PATH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In Open DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   we have to GIVE THE FULLL PATH + FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (only file name would not work )&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 05:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158690#M119727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-09T05:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158691#M119728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas.  Haven't tested it yet but you are absolutely correct.  Explains why I can read files in the home directory - you only have to enter the file name and SAP assumes the file is in the home directory.  If the file is elsewhere you have to specify the full path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 05:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158691#M119728</guid>
      <dc:creator>aidaj_hilton</dc:creator>
      <dc:date>2006-02-09T05:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158692#M119729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome. I used this function module and that is what I had to go through. The NAME field is only 40 characters in length, so the directory is not included as part of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the problem with this function module is that it is a basis function module for transport related files. So it checks for certain basis admin authorizations in the code. Apart from that, you still need access rights to the underlying unix directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, having access to one unix directory does not automatically guarantee you that it is universal on that server. Unix administrators can control the access to the minutest level. So you can have access to one directory but not others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 05:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1158692#M119729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-09T05:29:14Z</dc:date>
    </item>
  </channel>
</rss>

