<?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 with pathname while creating file with OPEN DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477276#M1651929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what i understand from your question is you want to create the directory(folder) inside another directory first and then create a file inside the newly created directory. is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the portion where you are going wrong is open dataset is for file not for directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use fm WBMR_CREATE_APPL_FOLDER to create folder in app server or check the below thread to call OS command directly&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="6037980"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once done.. then you go for open dataset with the file path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 16:03:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-17T16:03:08Z</dc:date>
    <item>
      <title>problem with pathname while creating file with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477273#M1651926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a file into a folder in a directory using OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the problem...when enteing path name during the execution of the progrm with slash (/) then it is giving error says that the can not be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: if the path is /test/new/org.txt then it is throwing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise how to handle with '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477273#M1651926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-17T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem with pathname while creating file with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477274#M1651927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAdhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When using PATH as /test/file.txt system is writing exaclty on this path. And first thing is system show have access to this folder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually it is better use full path when writting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477274#M1651927</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2012-01-17T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with pathname while creating file with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477275#M1651928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you know that the slash is the problem? Does the target directory exist at all on the application server? Is there available space? Authorizations? Did you observe exact lower and upper case spelling?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477275#M1651928</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-01-17T15:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem with pathname while creating file with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477276#M1651929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what i understand from your question is you want to create the directory(folder) inside another directory first and then create a file inside the newly created directory. is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the portion where you are going wrong is open dataset is for file not for directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use fm WBMR_CREATE_APPL_FOLDER to create folder in app server or check the below thread to call OS command directly&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="6037980"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once done.. then you go for open dataset with the file path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477276#M1651929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-17T16:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with pathname while creating file with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477277#M1651930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter:filenme1 TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filenme1.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;directory              = '\tmp'                      &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILEMASK               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;serverfile             =  filenme1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;canceled_by_user       = 1&lt;/P&gt;&lt;P&gt;OTHERS                 = 2&lt;/P&gt;&lt;P&gt;         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the above code, for the parameter filename1 you can give the f4 search-help ,which will take you to the exact directory in AL11.&lt;/P&gt;&lt;P&gt;but your required directory should be specified in the field &lt;STRONG&gt;directory = '  '&lt;/STRONG&gt;  . """""""""""""""""" &lt;/P&gt;&lt;P&gt;note:directory = '.'  is mandatory with in the function """"""""""""'""&lt;/P&gt;&lt;P&gt;this might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ambika KS on Jan 18, 2012 7:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-pathname-while-creating-file-with-open-dataset/m-p/8477277#M1651930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-18T18:08:55Z</dc:date>
    </item>
  </channel>
</rss>

