<?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: Read dataset Dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734867#M1111126</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;can you send me the dump analysis screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the error is different than the above ones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2008 15:33:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-12T15:33:46Z</dc:date>
    <item>
      <title>Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734860#M1111119</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 want to read file from server and after the read i get sy-subrc = 8.&lt;/P&gt;&lt;P&gt;what can be the problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
        dsn(500) VALUE '\\ivp08.tlv.sap.corp\DEV_P_Development\EP 6Program Office\r1.txt'.

  CLEAR itab.  REFRESH itab.

* Read the data.
  OPEN DATASET dsn FOR INPUT IN BINARY MODE.
  DO.
    READ DATASET dsn INTO str.
    IF sy-subrc = 0.
      APPEND itab.
    ELSE.
      EXIT.
    ENDIF.
  ENDDO.
  CLOSE DATASET dsn.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734860#M1111119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T15:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734861#M1111120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;although you not put the dump information about the error.But it seems you are not authorized to read this file.check the authorization you have, with basis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734861#M1111120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T15:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734862#M1111121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the case upper case and lower case... it would be issues generally on the .TXT and .txt both are diff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy paste the name as it appears on the server address or in AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Translate dsn to Lower case&lt;/STRONG&gt; might help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from sap HElp:&lt;/STRONG&gt; If the system was able to read data successfully, SY-SUBRC is set to 0. When the end of the file is reached, SY-SUBRC is set to 4. If the file could not be opened, SY-SUBRC is set to 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734862#M1111121</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-12T15:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734863#M1111122</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 that .. the file could not be opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether the file is present in the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is always safe to have a SY-SUBRC = 0 check after open dataset to avoid... dumps.. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dataset dsn.
if sy-subrc = 0.
...."process
close dataset dsn.
else.

"Throw error message thru coding

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734863#M1111122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734864#M1111123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that path in dsn points to a file on the app server? Is the name 100% correct?&lt;/P&gt;&lt;P&gt;Also, you read into str, but append itab, this will not work.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734864#M1111123</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-12T15:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734865#M1111124</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 am sure that if you check the sy-subrc after the OPEN DATASET, you will get a value 8, meaning that the file could not be opened. If you catch the exception you will see why it could not be opened. Read the documentation of OPEN DATASET for exception handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734865#M1111124</guid>
      <dc:creator>JP_Barcenas</dc:creator>
      <dc:date>2008-11-12T15:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734866#M1111125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SY-SUBRC 8..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it should be some thing to do with the DSN make sure you are using the same case.. the path DSN is case sensitive.... check in tr. AL11 how are the paths defined.. and get the DSN exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this didnt help then try opening the file using tcode cg3y . if not then might be an authorization issue .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734866#M1111125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T15:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734867#M1111126</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;can you send me the dump analysis screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the error is different than the above ones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 15:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734867#M1111126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734868#M1111127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to Access the file (copy paste from the code )  from strart-&amp;gt; run and the file is opened,&lt;/P&gt;&lt;P&gt;what can be the problem  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 16:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734868#M1111127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T16:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734869#M1111128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  J@Y  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to translate like u write and it's not help ,&lt;/P&gt;&lt;P&gt;maybe u have other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 16:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734869#M1111128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T16:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read dataset Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734870#M1111129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i try to Access the file (copy paste from the code ) from strart-&amp;gt; run and the file is opened,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start &amp;gt; run is the file not in App server? your code for open dataset and all works for file in application server (AL11) only.. if you have file on another FTP server then you need FTP_connect and other FM's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 16:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-dump/m-p/4734870#M1111129</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-12T16:48:44Z</dc:date>
    </item>
  </channel>
</rss>

