<?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: Problem using read dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885236#M1960994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are Two standard Programs.&lt;/P&gt;&lt;P&gt;RC1TCG3Y or RC1TCG3Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is for Uploading and other one is for downloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First try to download the file by using the above one. give the exact path(file), what you tried in the above program. Then check it. whether the path is wrong or some other reason you can get easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2016 11:52:36 GMT</pubDate>
    <dc:creator>former_member196331</dc:creator>
    <dc:date>2016-10-05T11:52:36Z</dc:date>
    <item>
      <title>Problem using read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885234#M1960992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some problems using this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;do&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;read &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;dataset &lt;/SPAN&gt;vg_filenamein &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;it_upload&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &amp;lt;&amp;gt; &lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;exit&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;it_upload&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;enddo&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is that after using read dataset sy-subrc = 4. Before of the code above it is done this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;perform &lt;/SPAN&gt;open_dataset &lt;SPAN class="L0S52"&gt;using &lt;/SPAN&gt;vg_filenamein&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;That follows:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;form &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;open_dataset &lt;SPAN class="L0S52"&gt;using &lt;/SPAN&gt;p_dataset&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;open &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;dataset &lt;/SPAN&gt;p_dataset &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;text &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;mode &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ENCODING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OUTPUT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &amp;lt;&amp;gt; &lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;write&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ &lt;SPAN class="L0S33"&gt;'Erro na abertura do arquivo: '&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;p_dataset&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;stop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S52"&gt;endform&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;This form works ok since sy-subrc = 0 after using open dataset. The file that I try to read is in AL11 and the path using from open dataset is correct &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;as well as the file is not empty and this file is just plain text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Could you please help me? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 11:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885234#M1960992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-05T11:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885235#M1960993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are opening dataset for output but later you use read command probably that's the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 11:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885235#M1960993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-05T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885236#M1960994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are Two standard Programs.&lt;/P&gt;&lt;P&gt;RC1TCG3Y or RC1TCG3Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is for Uploading and other one is for downloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First try to download the file by using the above one. give the exact path(file), what you tried in the above program. Then check it. whether the path is wrong or some other reason you can get easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 11:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885236#M1960994</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-10-05T11:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885237#M1960995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You opened the dataset FOR OUTPUT and then try to read it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 11:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-read-dataset/m-p/11885237#M1960995</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-10-05T11:54:36Z</dc:date>
    </item>
  </channel>
</rss>

