<?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 Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993657#M954090</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 tried to capture the error message, the message states as &lt;/P&gt;&lt;P&gt;'Permission Denied'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'm able to create folders in this path, i'm not sure why this message occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one has come across such error, please let me know how to over come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 05:18:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T05:18:38Z</dc:date>
    <item>
      <title>OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993653#M954086</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 have a piece of code which writes the output of report to a file on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using OPEN DATASET with APPEND option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for one particular path i'm getting error sy-subrc = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try to write to file on other  path, i'm able to successfully write the data to file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know , if there is any way to over come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 12:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993653#M954086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T12:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993654#M954087</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; Sy-subrc = 8 means Internal error(Unknown reason) might be operating system couldn't open file. Check out if u have authorizations to write to the file of that path ...&lt;/P&gt;&lt;P&gt;&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>Tue, 10 Jun 2008 12:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993654#M954087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993655#M954088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use MESSAGE &amp;lt;msg&amp;gt; addition with open dataset this will give you the error message passed by operating system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example : taken from help.sap.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: MESS(60),
      FNAME(10) VALUE 'hugo.xyz'.

OPEN DATASET FNAME MESSAGE MESS.

IF SY-SUBRC &amp;lt;&amp;gt; 0.
  WRITE: 'SY-SUBRC:', SY-SUBRC,
       / 'System Message:', MESS.
ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this you will know whats wrong.. in my opinion that file doesnot exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 12:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993655#M954088</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-06-10T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993656#M954089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely its an authorization problem. Ask basis to have it fixed or chose an alternate path to write the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 13:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993656#M954089</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-06-10T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993657#M954090</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 tried to capture the error message, the message states as &lt;/P&gt;&lt;P&gt;'Permission Denied'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'm able to create folders in this path, i'm not sure why this message occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one has come across such error, please let me know how to over come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993657#M954090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993658#M954091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just refer this:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2480027"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If not at all solved..Please paste the code.&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;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993658#M954091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993659#M954092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi the path is case sensitive..so check for typo's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993659#M954092</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-12T06:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993660#M954093</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 try to catch system exceptions when you are opening the dataset. Usually, when we use open dataset with append mode there are 2 cases possible&lt;/P&gt;&lt;P&gt;1. If the file exists it is opened in appending mode and system moves to the end of file.&lt;/P&gt;&lt;P&gt;2. If the file does not exists then the system creates it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case sy-subrc is set to 8 which is surely an internal program error . The actual cause of error can be determined if you catch the system exceptions. It might be a possibility that the file you are trying to append might already be open for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the following in your program to know the exact cause of error. ( just an example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS cx_sy_file_open = 1&lt;/P&gt;&lt;P&gt;                                open_dataset_no_authority = 2&lt;/P&gt;&lt;P&gt;                                     dataset_too_many_files = 3&lt;/P&gt;&lt;P&gt;                                     cx_sy_file_authority      = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OPEN DATASET filename FOR APPENDING IN TEXT MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now check the sy-subrc value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to handle all the possible system exceptions just go to F1 help of OPEN DATSET and check the catchable runtime system exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if it is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993660#M954093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993661#M954094</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'm also facing same kind of issue.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i checked all the suggested ways.. but still getting the value of SY-SUBRC is 8..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operating system is Sun OS.. its working fine in dev and prd .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;issue is only with quality.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know your ideas to fix this.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 05:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/3993661#M954094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-01T05:32:31Z</dc:date>
    </item>
  </channel>
</rss>

