<?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>Question Re: Open dataset statement not working.. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739181#M3487771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the file is marked read only and you have given sufficient permissions for the fie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay Bose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 07:23:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-09T07:23:47Z</dc:date>
    <item>
      <title>Open dataset statement not working..</title>
      <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaq-p/9739179</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 have a report where i am storing spool in a file named "p_file" which is stored on a network path.I am using open dataset statement for &lt;SPAN style="font-size: 10pt;"&gt;downloading the file &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;application server.But its not working and sy_subrc is retuning "8" instead of "0".and output is coming as "'operating system could not open file".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : &lt;SPAN style="font-size: 10pt;"&gt;p_file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;LIKE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;rlgrap&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;filename &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 10pt;"&gt;'\\daload2\saptrans\transECCGBL'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp; downloading the file in application server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OPEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATASET &lt;/SPAN&gt;p_file &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OUTPUT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BINARY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MODE&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF&amp;nbsp; &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ &lt;SPAN class="L0S33"&gt;'List of Invoices excluded Due to No Accounting Document'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;g_it_temp &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;g_is_temp&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TRANSFER &lt;/SPAN&gt;g_is_temp &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;p_file &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;g_is_temp&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLOSE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATASET &lt;/SPAN&gt;p_file&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ &lt;SPAN class="L0S33"&gt;'operating system could not open file' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please Help...!!&lt;/SPAN&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;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaq-p/9739179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-09T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset statement not working..</title>
      <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739180#M3487770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the file path and check whether in that path you have authorisation to place the file???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739180#M3487770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-09T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset statement not working..</title>
      <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739181#M3487771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the file is marked read only and you have given sufficient permissions for the fie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay Bose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739181#M3487771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-09T07:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset statement not working..</title>
      <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739182#M3487772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be your File path is wrong, check it again and correct it and the file path does not contain extenstion of file whether it is 'TXT'or 'PDF' etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739182#M3487772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-09T07:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset statement not working..</title>
      <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739183#M3487773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have provided the correct Application Server path and still you are getting Sy-SUBRC = 8, then the file is not created. Before the data is written in file, the file needs to be created in the server path. I think you do not have write authorization in that server path. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you could use some catchable exceptions to check exactly why the error is coming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739183#M3487773</guid>
      <dc:creator>former_member219162</dc:creator>
      <dc:date>2013-10-09T07:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset statement not working..</title>
      <link>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739184#M3487774</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 add the MESSAGE option to the OPEN statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt;"&gt;&lt;STRONG&gt;DATA mess TYPE string.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN class="L0S52"&gt;OPEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATASET &lt;/SPAN&gt;p_file &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OUTPUT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BINARY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MODE &lt;/SPAN&gt;MESSAGE mess.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can get the OS message in mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/open-dataset-statement-not-working/qaa-p/9739184#M3487774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-09T07:37:12Z</dc:date>
    </item>
  </channel>
</rss>

