cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating a folder in application server, AL11.

Former Member
0 Likes
6,935

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

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.

yogesh8984
Contributor
0 Likes

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

Former Member
0 Likes

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