<?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 dataset problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013380#M79384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Download internal table to Application server file(Unix)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.      

  open dataset e_file for output in text mode.
  lOOP AT it_datatab......
    transfer it_datatab to e_file.
  ENDLOOP.
 
  close dataset e_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2005 04:39:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-28T04:39:00Z</dc:date>
    <item>
      <title>Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013376#M79380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;      I tried to trasfer the contents to the path specified,but here sy-subrc = 8,ie.file could not be opened,but this works in testing and quality,but in production it produces this error,&lt;/P&gt;&lt;P&gt;my code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear : dsn.&lt;/P&gt;&lt;P&gt;  concatenate path 'ixxx.txt' into dsn.&lt;/P&gt;&lt;P&gt;  open dataset dsn for output in text mode encoding non-unicode ignoring&lt;/P&gt;&lt;P&gt;conversion errors.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    loop at itab.&lt;/P&gt;&lt;P&gt;      transfer itab to dsn.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  close dataset dsn.&lt;/P&gt;&lt;P&gt;Can anyone provide a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Latha prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013376#M79380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013377#M79381</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;There might be probelm with access to the particular file.&lt;/P&gt;&lt;P&gt;that particular file/folder don't have write access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check access for the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013377#M79381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013378#M79382</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; Since it works well in Quality Server your program is doing is right.When it comes to production you may not have access rights to partcular path( drive names,....).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please locate the exact path you have access to and then run this code and it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if you find this explanation useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013378#M79382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013379#M79383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check with basis if u have the permission to write a file on the production server....that could be the only reason if u have tested successfully in quality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013379#M79383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013380#M79384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Download internal table to Application server file(Unix)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.      

  open dataset e_file for output in text mode.
  lOOP AT it_datatab......
    transfer it_datatab to e_file.
  ENDLOOP.
 
  close dataset e_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013380#M79384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013381#M79385</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;  Check whether directory path mentioned in your code is maintained in production system, you can view the directorieds from AL11 transation, you can also go to FILE transaction and check the physical path/logical path maintained in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013381#M79385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013382#M79386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; With  continuation to my above explanation please check the function module &amp;lt;b&amp;gt;AUTHORITY_CHECK_DATASET&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the filename you give depends on the OS.To make the programs portable to different OS use the Function module &amp;lt;b&amp;gt;FILE_GET_NAME.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It checks file authorization.You can find its &lt;/P&gt;&lt;P&gt;explanation from the FM's documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if you find this explanation useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013382#M79386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013383#M79387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;    Thank u very much for these quick and responses which solved my problem.I have given some points to all the persons who have helped to solve this problem.Problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Latha Prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 04:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-problem/m-p/1013383#M79387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T04:57:32Z</dc:date>
    </item>
  </channel>
</rss>

