<?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, READ, CLOSE, TRANSFER DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793631#M40270</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&amp;lt;wa&amp;gt;&lt;/STRONG&gt; is type X, the line type of &lt;STRONG&gt;_table &lt;/STRONG&gt;is &lt;STRONG&gt;_struct&lt;/STRONG&gt;, which is a isn't type X. Hence the error. Maybe you should check your course notes or abap help about types in ABAP and conversion of types.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 08:39:59 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2019-03-10T08:39:59Z</dc:date>
    <item>
      <title>OPEN, READ, CLOSE, TRANSFER DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793628#M40267</link>
      <description>&lt;P&gt;Hi SAP ABAP Gurus,&lt;/P&gt;
  &lt;P&gt;Please help. Below code is not working.&lt;/P&gt;
  &lt;P&gt;Error is "&amp;lt;WA&amp;gt;" cannot be converted to the row type of "_TABLE". The reverse is also not possible.&lt;/P&gt;
  &lt;P&gt;TYPES: BEGIN OF _struct,&lt;BR /&gt; _line TYPE string,&lt;BR /&gt; END OF _struct.&lt;BR /&gt; &lt;BR /&gt; DATA _table TYPE STANDARD TABLE OF _struct.&lt;BR /&gt; &lt;BR /&gt; FIELD-SYMBOLS &amp;lt;wa&amp;gt; TYPE x.&lt;BR /&gt; &lt;BR /&gt; OPEN DATASET file1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt; DO.&lt;BR /&gt; READ DATASET file1 INTO &amp;lt;wa&amp;gt;.&lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt; APPEND &amp;lt;wa&amp;gt; TO _table.&lt;BR /&gt; ELSE.&lt;BR /&gt; EXIT.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDDO.&lt;BR /&gt; CLEAR _table.&lt;BR /&gt; CLOSE DATASET file1.&lt;BR /&gt; * DELETE DATASET file1.&lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; OPEN DATASET file2 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt; LOOP AT _table INTO &amp;lt;wa&amp;gt;.&lt;BR /&gt; TRANSFER &amp;lt;wa&amp;gt; TO file2.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; CLOSE DATASET file2.&lt;BR /&gt; ENDIF.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 06:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793628#M40267</guid>
      <dc:creator>rciano</dc:creator>
      <dc:date>2019-03-10T06:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN, READ, CLOSE, TRANSFER DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793629#M40268</link>
      <description>&lt;P&gt; Open dataset file1 for input in text mode encoding default. &lt;/P&gt;&lt;P&gt;     if sy-subrc ne 0.
        write:/ 'Unable to open file:', file1. &lt;/P&gt;&lt;P&gt;     else. &lt;/P&gt;&lt;P&gt;        do.&lt;/P&gt;&lt;P&gt;
           read datasset file1 into &amp;lt;wa&amp;gt;. &lt;/P&gt;&lt;P&gt;           if sy-subrc ne o. &lt;/P&gt;&lt;P&gt;              exit. &lt;/P&gt;&lt;P&gt;           else. &lt;/P&gt;&lt;P&gt;              append &amp;lt;wa&amp;gt; to _table.&lt;/P&gt;&lt;P&gt;
           endif. &lt;/P&gt;&lt;P&gt;           close dataset file1. &lt;/P&gt;&lt;P&gt;        enddo. &lt;/P&gt;&lt;P&gt;     endif. &lt;/P&gt;&lt;P&gt;Open dataset file2 for output in text mode encoding default. &lt;/P&gt;&lt;P&gt;     if sy-subrc ne 0. &lt;/P&gt;&lt;P&gt;        write:/ 'Unable to open file:', file2. &lt;/P&gt;&lt;P&gt;     else. &lt;/P&gt;&lt;P&gt;        loop at _table. &lt;/P&gt;&lt;P&gt;               transfer &amp;lt;wa&amp;gt; to file2. &lt;/P&gt;&lt;P&gt;        endloop. &lt;/P&gt;&lt;P&gt;        close dataset file2.&lt;/P&gt;&lt;P&gt;
     endif.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 07:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793629#M40268</guid>
      <dc:creator>muttepawar-2009</dc:creator>
      <dc:date>2019-03-10T07:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN, READ, CLOSE, TRANSFER DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793630#M40269</link>
      <description>&lt;P&gt;Use the "code" button of the editor when posting code.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 08:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793630#M40269</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-03-10T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN, READ, CLOSE, TRANSFER DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793631#M40270</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&amp;lt;wa&amp;gt;&lt;/STRONG&gt; is type X, the line type of &lt;STRONG&gt;_table &lt;/STRONG&gt;is &lt;STRONG&gt;_struct&lt;/STRONG&gt;, which is a isn't type X. Hence the error. Maybe you should check your course notes or abap help about types in ABAP and conversion of types.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 08:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793631#M40270</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-03-10T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN, READ, CLOSE, TRANSFER DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793632#M40271</link>
      <description>&lt;P&gt;It's better to explain what is wrong and why, rather than just correcting without explaining anything&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 13:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793632#M40271</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-03-10T13:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN, READ, CLOSE, TRANSFER DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793633#M40272</link>
      <description>&lt;P&gt;"code is not working" means nothing, give facts: code is not compiling, there is the following syntax error. Please tell us also the line where the syntax error occurs, rather than letting us reviewing the whole code manually.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 13:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-read-close-transfer-dataset/m-p/793633#M40272</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-03-10T13:13:56Z</dc:date>
    </item>
  </channel>
</rss>

