10-28-2009 9:49 AM
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.
10-28-2009 9:57 AM
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
04-26-2012 12:59 PM
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.
01-24-2013 1:09 PM
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.