on ‎2008 Aug 05 6:49 AM
Hi,
i want to create a folder in AL11.I tried using GUI_CREATE_DIRECTORY to create the directory.
But it is saving in the local server only. Can this function be used to create a directory in AL11 also. If so how should i specify the path/dirname? Can anyone tell me the excat path, how i should mention (eg: //server/D:/....).
call function 'GUI_CREATE_DIRECTORY'
exporting
dirname = '//172.29.28.25/d:/ddd'
Exceptions
failed = 1
others = 2.
Is there any other ways by which i create a directory in AL11 using ABAP program.
Thanks in advance.
Request clarification before answering.
Hi RR,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In AL11 transaction you can directly create the folder structure. In AL11, there is a option available "Configure". Click on it, give the directory name and say create.
It will create the folder in AL11 directory.
Regards,
Yogesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yogesh,
I know that we can create a folder structure directly in AL11. But my requirement is to create a folder in AL11 through ABAP program. i need to execute the program on a frequent interval, and during each execution of the program the old folder should get deleted and a new folder should be created in the application server.
Regards
Renju
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.