<?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 - return code 8 - msg - Permission Denied in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1565000#M255353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Santosh, that helped. &lt;/P&gt;&lt;P&gt;Now I am getting sy-subrc =  0 on the function call but I am still getting a return code of 8 on the open dataset.  Here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   call function 'AUTHORITY_CHECK_DATASET'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              program          = 'ZBS_PRODUCT_OUTBOUND_INTERFACE'&lt;/P&gt;&lt;P&gt;              activity         = 'WRITE'&lt;/P&gt;&lt;P&gt;         filename         = '&lt;BR /&gt;saberdev\blacksmith\ftpout\bsproduct.txt'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              no_authority     = 1&lt;/P&gt;&lt;P&gt;              activity_unknown = 2&lt;/P&gt;&lt;P&gt;              others           = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: MSG(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    pfilename = '&lt;BR /&gt;saberdev\blacksmith\ftpout\bsproduct.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET pfilename FOR OUTPUT IN TEXT MODE MESSAGE MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'file error: ' MSG INTO MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE E208(00) WITH MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2006 18:59:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-28T18:59:15Z</dc:date>
    <item>
      <title>Open dataset - return code 8 - msg - Permission Denied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1564997#M255350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the first time this company has tried to write files to the application server. They are running under Windows. The network admin set up a folder and I am getting a return code of 8 on 'open dataset'.  When I use this function to get more information I am getting&lt;/P&gt;&lt;P&gt;a run-time error that the ABAP is bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong with this function call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pfilename = &lt;BR /&gt;saberdev\blacksmith\ftpout\bsproduct.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'AUTHORITY_CHECK_DATASET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program = 'ZBS_PRODUCT_OUTBOUND_INTERFACE'&lt;/P&gt;&lt;P&gt;activity = 'WRITE'&lt;/P&gt;&lt;P&gt;filename = pfilename&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_authority = 1&lt;/P&gt;&lt;P&gt;activity_unknown = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 18:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1564997#M255350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset - return code 8 - msg - Permission Denied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1564998#M255351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   Put the Path in Single Quotes and give a try ..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;pfilename = '\saberdevblacksmithftpoutbsproduct.txt'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&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>Thu, 28 Sep 2006 18:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1564998#M255351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset - return code 8 - msg - Permission Denied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1564999#M255352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is pfilename declared?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 18:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1564999#M255352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T18:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset - return code 8 - msg - Permission Denied</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1565000#M255353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Santosh, that helped. &lt;/P&gt;&lt;P&gt;Now I am getting sy-subrc =  0 on the function call but I am still getting a return code of 8 on the open dataset.  Here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   call function 'AUTHORITY_CHECK_DATASET'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              program          = 'ZBS_PRODUCT_OUTBOUND_INTERFACE'&lt;/P&gt;&lt;P&gt;              activity         = 'WRITE'&lt;/P&gt;&lt;P&gt;         filename         = '&lt;BR /&gt;saberdev\blacksmith\ftpout\bsproduct.txt'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              no_authority     = 1&lt;/P&gt;&lt;P&gt;              activity_unknown = 2&lt;/P&gt;&lt;P&gt;              others           = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: MSG(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    pfilename = '&lt;BR /&gt;saberdev\blacksmith\ftpout\bsproduct.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET pfilename FOR OUTPUT IN TEXT MODE MESSAGE MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'file error: ' MSG INTO MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE E208(00) WITH MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 18:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-code-8-msg-permission-denied/m-p/1565000#M255353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T18:59:15Z</dc:date>
    </item>
  </channel>
</rss>

