‎2012 Oct 08 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.
‎2012 Oct 08 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
‎2012 Oct 08 2:55 PM
‎2013 Jan 24 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.