<?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: To create folder in Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541562#M852062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code. Hope this might be helpfull you.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 06:40:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T06:40:16Z</dc:date>
    <item>
      <title>To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541561#M852061</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;&lt;STRONG&gt;How to create folder in application server from presentation server??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how is the program it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply me soon...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx,&lt;/P&gt;&lt;P&gt;s.suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 06:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541561#M852061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T06:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541562#M852062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code. Hope this might be helpfull you.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 06:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541562#M852062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541563#M852063</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;call function 'GUI_CREATE_DIRECTORY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dirname = '//&amp;lt;ip_address&amp;gt;/qfilesvr400/&amp;lt;host&amp;gt;/usr/sap/TST/SYS/Folder1'&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;failed = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 06:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541563#M852063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541564#M852064</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; call function 'GUI_CREATE_DIRECTORY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dirname = '//10.145.14.156/safil/&amp;lt;give your host name &amp;gt;/usr/temp/myFolder'&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;failed = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 06:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541564#M852064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T06:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541565#M852065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u r having nice day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am sending a sample report which can upload the file to Application Server which inturn automatically create folder .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSHR_UPLOAD_TO_APPLICATION              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF IT_MAT OCCURS 0,&lt;/P&gt;&lt;P&gt;          MBRSH LIKE MARA-MBRSH,&lt;/P&gt;&lt;P&gt;          MTART LIKE MARA-MTART,&lt;/P&gt;&lt;P&gt;          MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;          MEINS LIKE MARA-MEINS,&lt;/P&gt;&lt;P&gt;       END OF IT_MAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_DIR(40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'D:\usr\sap\DEV\DVEBMGS00\work\SHR' TO W_DIR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;"SHR" IS A FOLDER NAME TO BE CREATED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                     = 'C:\MAT.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = IT_MAT&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET W_DIR FOR OUTPUT IN TEXT MODE ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_MAT.&lt;/P&gt;&lt;P&gt;       TRANSFER IT_MAT TO W_DIR.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;CLOSE DATASET W_DIR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF USEFUL AWARD POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEMASEKHARA REDDY S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 07:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541565#M852065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T07:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541566#M852066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'//&amp;lt;ip_address&amp;gt;/&lt;STRONG&gt;qfilesvr400&lt;/STRONG&gt;/&amp;lt;host&amp;gt;/&lt;STRONG&gt;usr/sap/TST/SYS/Folder1&lt;/STRONG&gt;'??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is used it????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply me soon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s.suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 07:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541566#M852066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: To create folder in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541567#M852067</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;its not come output...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 10:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-create-folder-in-application-server/m-p/3541567#M852067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T10:11:08Z</dc:date>
    </item>
  </channel>
</rss>

