<?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: Getting Subrc = 8 when trying to open Appln server path.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913360#M685692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 06:00:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-17T06:00:54Z</dc:date>
    <item>
      <title>Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913356#M685688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my requirement, I have to post the output of a report to an application server path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my selection screen I am doing the validation as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Catch the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET lv_path FOR OUTPUT MESSAGE lv_message&lt;/P&gt;&lt;P&gt;                              IN LEGACY TEXT MODE." ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;    CATCH cx_sy_file_authority.&lt;/P&gt;&lt;P&gt;      MESSAGE e204 WITH p_file.                             "#EC *&lt;/P&gt;&lt;P&gt;    CATCH cx_sy_file_open .&lt;/P&gt;&lt;P&gt;      MESSAGE e205 WITH lv_path.                            "#EC *&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;  IF sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  All is well - close dataset and delete&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLOSE DATASET lv_path.&lt;/P&gt;&lt;P&gt;    DELETE DATASET lv_path.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE e206 WITH p_file lv_message.                    "#EC *&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basis guys have created the directory, I can see this in AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am entering the path correctly ( I mean considering case sensitive ) in the selection screen. But, When i am trying to open the directory I am getting sy-subrc value as '8' and generating an error message every time. Please help asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 05:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913356#M685688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T05:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913357#M685689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
* Catch the message
OPEN DATASET lv_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
CATCH cx_sy_file_authority.
MESSAGE e204 WITH p_file. "#EC *
CATCH cx_sy_file_open .
MESSAGE e205 WITH lv_path. "#EC *
ENDTRY.
IF sy-subrc eq 0.
* All is well - close dataset and delete
CLOSE DATASET lv_path.
DELETE DATASET lv_path.
ELSE.
MESSAGE e206 WITH p_file lv_message. "#EC *
ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified the OPEN DATASET statment. Please check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 05:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913357#M685689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T05:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913358#M685690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still I am getting subrc as '8' only. I dont understand whats the problem here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 05:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913358#M685690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T05:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913359#M685691</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;1. Please ensure that lv_path has a proper path &amp;amp; file name&lt;/P&gt;&lt;P&gt;2. Ensure that you have the necessary authorztn to access the folder &amp;amp; to read or write in that folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If above two points have answer YES, then it should not give sy-subrc = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 05:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913359#M685691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T05:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913360#M685692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 06:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913360#M685692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T06:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913361#M685693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be bcoz of not having the Authorization for this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Check for user Authorization on a App Server file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL The Function module 'AUTHORITY_CHECK_DATASET' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the status of this FM the use OPEN Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 06:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913361#M685693</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-17T06:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Subrc = 8 when trying to open Appln server path..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913362#M685694</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 was facing the same issue.&lt;/P&gt;&lt;P&gt;Then I converted parameter like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: filename(200) &lt;STRONG&gt;TYPE c DEFAULT&lt;/STRONG&gt;&amp;nbsp; '/tmp/test1.xml' &lt;STRONG&gt;LOWER CASE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, open dataset was able to find the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Bing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 14:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-subrc-8-when-trying-to-open-appln-server-path/m-p/2913362#M685694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-05T14:45:28Z</dc:date>
    </item>
  </channel>
</rss>

