<?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 error in opening dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-opening-dataset/m-p/3839007#M923062</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 getting a dum in using this code, the says the file is not yet opened. what could be the reason? thansk!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_fpath TYPE salfile-longname VALUE&lt;/P&gt;&lt;P&gt;'d:\testing\itab_bsak.xls'.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF i_records OCCURS 0,&lt;/P&gt;&lt;P&gt;rec TYPE string ,&lt;/P&gt;&lt;P&gt;END OF i_records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_input occurs 0,&lt;/P&gt;&lt;P&gt;rec type string,&lt;/P&gt;&lt;P&gt;END OF it_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_fpath FOR INPUT IN TEXT MODE encoding default.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET v_fpath INTO i_records-rec .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;CLOSE DATASET v_fpath .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 May 2008 07:25:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-25T07:25:31Z</dc:date>
    <item>
      <title>error in opening dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-opening-dataset/m-p/3839007#M923062</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 getting a dum in using this code, the says the file is not yet opened. what could be the reason? thansk!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_fpath TYPE salfile-longname VALUE&lt;/P&gt;&lt;P&gt;'d:\testing\itab_bsak.xls'.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF i_records OCCURS 0,&lt;/P&gt;&lt;P&gt;rec TYPE string ,&lt;/P&gt;&lt;P&gt;END OF i_records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_input occurs 0,&lt;/P&gt;&lt;P&gt;rec type string,&lt;/P&gt;&lt;P&gt;END OF it_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_fpath FOR INPUT IN TEXT MODE encoding default.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET v_fpath INTO i_records-rec .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;CLOSE DATASET v_fpath .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 07:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-opening-dataset/m-p/3839007#M923062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-25T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: error in opening dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-opening-dataset/m-p/3839008#M923063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT p_ufile IS INITIAL.
OPEN DATASET p_ufile FOR INPUT IN TEXT MODE.
IF sy-subrc NE 0.
EXIT.
ENDIF.

DO.
READ DATASET p_ufile INTO wa_file.
IF sy-subrc NE 0.
EXIT.
ENDIF.
ASSIGN wa_file TO &amp;lt;wa_table&amp;gt;.
APPEND &amp;lt;wa_table&amp;gt; TO p_table.
CLEAR wa_file.
ENDDO.

CLOSE DATASET p_ufile.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 07:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-opening-dataset/m-p/3839008#M923063</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-25T07:26:51Z</dc:date>
    </item>
  </channel>
</rss>

