Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Directory on Application Server using ABAP

Former Member
0 Kudos

Hello,

Does anyone know if it is possible to write ABAP code to create a folder on a directory on the Application Server. If it is possible can anyone please paste the paragraph of code here?

Thanks.

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

Check function module

BRAN_DIR_CREATE

WBMR_CREATE_APPL_FOLDER

Check threads

link:[http://www.sapfans.com/forums/viewtopic.php?t=275857]

Edited by: Keshu Thekkillam on Oct 28, 2009 3:35 PM

0 Kudos

BRAN_DIR_CREATE is correct but it requires special admin rights to the object  S_RZL_ADM. Does anyone know another function?

btw. WBMR_... is for creating MIME folders not server directories.

Former Member

Hi jamison,

The following code for create folder in application server.

DATA: l_com TYPE rlgrap-filename.

CALL FUNCTION 'PFL_CHECK_DIRECTORY'

   EXPORTING

     directory         = directory " Application server path(\\test\test1\test2)

   EXCEPTIONS

     pfl_dir_not_exist = 1.

IF sy-subrc = 1.

   CONCATENATE 'cmd /c mkdir' directory INTO l_com SEPARATED BY space.

   CALL 'SYSTEM' ID 'COMMAND' FIELD l_com.

ENDIF.