<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658496#M613165</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;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;*--- Display error messages if any.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(zsd_mes).&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Data is downloaded to the application server file path&lt;/P&gt;&lt;P&gt;    LOOP AT it_tab2 INTO wa_tab2.&lt;/P&gt;&lt;P&gt;      TRANSFER wa_tab2 TO p_file.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Close the Application server file (Mandatory).&lt;/P&gt;&lt;P&gt;  CLOSE DATASET p_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2007 12:11:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-24T12:11:02Z</dc:date>
    <item>
      <title>READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658493#M613162</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;uploaded into SAP. When tried to open and read the flat file using OPEN DATASET and READ DATASET commands, &lt;/P&gt;&lt;P&gt;the Sy-subrc value returned is 8 and the error message 'the specified file not found' is displayed. We checked the path and &lt;/P&gt;&lt;P&gt;the file is in the correct location. What is missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 10:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658493#M613162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658494#M613163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File names and paths are case sensitive in a lot of server operating systems - check that yours is correct in this aspect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see if you can find / display the dataset in AL11 - could be permissions for the file are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 11:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658494#M613163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T11:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658495#M613164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul&lt;/P&gt;&lt;P&gt;Before data can be processed , a file need to be opened.&lt;/P&gt;&lt;P&gt;open dataset &amp;lt;file name&amp;gt; for  &amp;lt; input / output / appending &amp;gt;&lt;/P&gt;&lt;P&gt;        in &amp;lt; text mode / binary mode&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processing a file involves reading the file or writing on to  the file transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read dataset  &amp;lt;file name&amp;gt; into &amp;lt; field&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each read will get one record from the dataset . In binary mode it reads the length of field and in text mode it reads each line.&lt;/P&gt;&lt;P&gt;If the program attempts to read a record that  do not exist ,then it will show an error.&lt;/P&gt;&lt;P&gt;So it is the error in mode( text mode or binary mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manas&lt;/P&gt;&lt;P&gt;If useful donot forget to reward me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 10:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658495#M613164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T10:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658496#M613165</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;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;*--- Display error messages if any.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(zsd_mes).&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Data is downloaded to the application server file path&lt;/P&gt;&lt;P&gt;    LOOP AT it_tab2 INTO wa_tab2.&lt;/P&gt;&lt;P&gt;      TRANSFER wa_tab2 TO p_file.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Close the Application server file (Mandatory).&lt;/P&gt;&lt;P&gt;  CLOSE DATASET p_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 12:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658496#M613165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T12:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658497#M613166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..Sharma..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can print the Exact message why the File is not opened using this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_DSN(40) DEFAULT 'TEMP.TXT'.&lt;/P&gt;&lt;P&gt;DATA : V_MSG TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET P_DSN FOR INPUT&lt;/P&gt;&lt;P&gt;IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;MESSAGE V_MSG.  "Returns the Actual message why the file not opened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;   Message v_msg  type 'E'.&lt;/P&gt;&lt;P&gt;  Else.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; do the Processing here&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 08:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/2658497#M613166</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-27T08:04:36Z</dc:date>
    </item>
  </channel>
</rss>

