<?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: Directory or Folder creation in server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530765#M849386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this code ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For browsing (checking the folder exists or not) you can use the following code:&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_DIRECTORY_PATH'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;EPS_SUBDIR = 'log' &lt;/P&gt;&lt;P&gt;DIR_NAME = 'DIR_TMP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;DIR_NAME = &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;INVALID_EPS_SUBDIR = 1&lt;/P&gt;&lt;P&gt;SAPGPARAM_FAILED = 2&lt;/P&gt;&lt;P&gt;BUILD_DIRECTORY_FAILED = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;"the directory not present.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For creating directory, you have to know the exact path of your server, and then you can use the following code:&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;path = '&lt;BR /&gt;172.52.72.651\qfilesvr400\S109XXXX\usr\sap\TST\SYS\test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DIRECTORY = path&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;RC = rc&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE_FAILED = 1&lt;/P&gt;&lt;P&gt;CNTL_ERROR = 2&lt;/P&gt;&lt;P&gt;ERROR_NO_GUI = 3&lt;/P&gt;&lt;P&gt;PATH_NOT_FOUND = 4&lt;/P&gt;&lt;P&gt;DIRECTORY_ACCESS_DENIED = 5&lt;/P&gt;&lt;P&gt;DIRECTORY_ALREADY_EXISTS = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;others = 8&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 13:53:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T13:53:53Z</dc:date>
    <item>
      <title>Directory or Folder creation in server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530763#M849384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Is it possible to create a folder or directory in the server through code..Is there any function module or class there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there means plz give the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another part..After creating the folder is it possible to give full access to the folder..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 13:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530763#M849384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T13:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Directory or Folder creation in server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530764#M849385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this thread..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="650653"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 13:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530764#M849385</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2008-03-04T13:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directory or Folder creation in server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530765#M849386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this code ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For browsing (checking the folder exists or not) you can use the following code:&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_DIRECTORY_PATH'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;EPS_SUBDIR = 'log' &lt;/P&gt;&lt;P&gt;DIR_NAME = 'DIR_TMP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;DIR_NAME = &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;INVALID_EPS_SUBDIR = 1&lt;/P&gt;&lt;P&gt;SAPGPARAM_FAILED = 2&lt;/P&gt;&lt;P&gt;BUILD_DIRECTORY_FAILED = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;"the directory not present.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For creating directory, you have to know the exact path of your server, and then you can use the following code:&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;path = '&lt;BR /&gt;172.52.72.651\qfilesvr400\S109XXXX\usr\sap\TST\SYS\test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DIRECTORY = path&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;RC = rc&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE_FAILED = 1&lt;/P&gt;&lt;P&gt;CNTL_ERROR = 2&lt;/P&gt;&lt;P&gt;ERROR_NO_GUI = 3&lt;/P&gt;&lt;P&gt;PATH_NOT_FOUND = 4&lt;/P&gt;&lt;P&gt;DIRECTORY_ACCESS_DENIED = 5&lt;/P&gt;&lt;P&gt;DIRECTORY_ALREADY_EXISTS = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;others = 8&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 13:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/directory-or-folder-creation-in-server/m-p/3530765#M849386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T13:53:53Z</dc:date>
    </item>
  </channel>
</rss>

