<?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 OPEN DATASET write to root folder in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569553#M22163</link>
    <description>&lt;P&gt;Hi Exprets,&lt;/P&gt;
  &lt;P&gt;I would like to store data in application server in the following directory.&lt;/P&gt;
  &lt;P&gt;the directory ( lets say folder name is "Folder1" is created under 'root' node in AL11. Now how do i write my OPEN dataset statemnet &lt;/P&gt;
  &lt;P&gt;what should lv_file shoud have?&lt;/P&gt;
  &lt;P&gt;OPEN DATESET lv_file .....&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 10:45:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-11-22T10:45:05Z</dc:date>
    <item>
      <title>OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569553#M22163</link>
      <description>&lt;P&gt;Hi Exprets,&lt;/P&gt;
  &lt;P&gt;I would like to store data in application server in the following directory.&lt;/P&gt;
  &lt;P&gt;the directory ( lets say folder name is "Folder1" is created under 'root' node in AL11. Now how do i write my OPEN dataset statemnet &lt;/P&gt;
  &lt;P&gt;what should lv_file shoud have?&lt;/P&gt;
  &lt;P&gt;OPEN DATESET lv_file .....&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569553#M22163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-22T10:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569554#M22164</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;if you want to write data in AL11 then:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;OPEN DATASET lv_file for OUTPUT in &amp;lt;mode&amp;gt;.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Just write open dataset in ABAP editor and click F1 on OPEN, you will get all the required details.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Let me know if you still stuck&lt;/P&gt;
  &lt;P&gt;LV_file should be of LOCALFILE type and should have the full path like '/usr/local/bin/test.txt'&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569554#M22164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-22T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569555#M22165</link>
      <description>&lt;P&gt;The OPEN DATASET command expects a real physical file name, and the format depends on the operating system of the current app server. For instance on a LINUX os this mig be '/Folder1/filename' if that folder is placed directly in the root.&lt;/P&gt;
  &lt;P&gt;If the path is identical across all application servers and the system landscape, you don't &lt;EM&gt;need&lt;/EM&gt; the root node in AL11 for this, but of course you can use Logical file names as well. (Then use transactions AL11, FILE, SF01 and then use function module FILE_GET_NAME to get the actual file name to use in you call to OPEN DATASET).&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569555#M22165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-22T11:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569556#M22166</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/85484-root.png"&gt;root.png&lt;/A&gt;hi,&lt;/P&gt;
  &lt;P&gt;thanks for the reply. I have tried below as path and it works fine &lt;/P&gt;
  &lt;P&gt;'/usr/sap/tmp/po.xml'&lt;/P&gt;
  &lt;P&gt;I want to place the file po.xml in "home" directory under root node. I tried '/home/po.xml' but it is dumping.. I have attached the screen shots of AL11. please suggest.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/85483-home.png"&gt;home.png&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569556#M22166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-22T12:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569557#M22167</link>
      <description>&lt;P&gt;Then this is most likely an autorization issue on the OS level. The &amp;lt;sid&amp;gt;adm user probably does not have write access in the /home/ directory. If there is where the files should be placed, the system administrator of the server need to grant access for that user to the /home directory.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569557#M22167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-22T12:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569558#M22168</link>
      <description>&lt;P&gt;Ok. so you think there is nothing wrong in the way I am providing the file name /home/po.xml. Is there anyway I can check in SAP that authorisation is failing&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 14:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569558#M22168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-22T14:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569559#M22169</link>
      <description>&lt;P&gt;Everything you want to know is listed in the ABAP(F1) Documentation. &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapopen_dataset.htm" target="_blank"&gt;https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapopen_dataset.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 14:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569559#M22169</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2017-11-22T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569560#M22170</link>
      <description>&lt;P&gt;Yes, its in the documentation provided by Suhas Saha as well... This will give you the error message:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;data lv_message type string.
open dataset '/home/po.xml' for output in text mode encoding default message lv_message.
cl_demo_output=&amp;gt;display( lv_message ). &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2017 08:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569560#M22170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-23T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569561#M22171</link>
      <description>&lt;P&gt;To insure correct behavior of your program you should first check authorization at SAP level &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;    CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
         EXPORTING                       
           ACTIVITY             = 'WRITE'
           FILENAME             = filename
         EXCEPTIONS                      
           NO_AUTHORITY         = 1      
           OTHERS               = 4. 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But, of course, you should also CATCH handleable exceptions like CX_SY_FILE_AUTHORITY (list can be found with F1 or online help) for error raised by actual server.&lt;/P&gt;
  &lt;P&gt;Also most Admins I know, wont allow you to put your data in root folder, bad practice indeed?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 10:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569561#M22171</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-11-23T10:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET write to root folder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569562#M22172</link>
      <description>&lt;P&gt;To summarize, start from the beginning:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_language_files.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_language_files.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 12:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-write-to-root-folder/m-p/569562#M22172</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-11-23T12:12:52Z</dc:date>
    </item>
  </channel>
</rss>

