10-08-2012 2:39 PM
Hi Experts,
How to create a folder in Application Server directory???
I have file path '/cg/interface/PLM/test/CONTENT/' i need to create a folder and inside that i need to save my files.
so final path will be like this
/cg/interface/PLM/test/CONTENT/files/arjun1.jpg'.
/cg/interface/PLM/test/CONTENT/files/arjun2.jpg'.
/cg/interface/PLM/test/CONTENT/files/arjun3.jpg'.
Regards,
Arjun.
10-08-2012 2:44 PM
Hi Arjun,
Please check on these
http://scn.sap.com/thread/111993
http://scn.sap.com/message/8122081
In my knowlwdge Basis people will do this for you.
Rgds,
Sandeep Katoch
10-08-2012 2:55 PM
You can usually only check/map folder via AL11 transaction, so either
- ask OS basis to create folder
- use external command (depending on OS, like mkdir) to create directory (SM49)
In both cases, check authorizations at OS level with help of OS basis.
Regards,
Raymond
01-24-2013 1:17 PM
Hi Arjun,
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.