Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create new folder in application server

Former Member
0 Likes
3,696

can any one help me how to create a new folder in application server.

7 REPLIES 7
Read only

Former Member
0 Likes
1,207

This is job of SAP Basis team.Please contact them

Read only

Former Member
0 Likes
1,207

Just ask your basis to do it for you as they have all the authorization on application server.

Regards,

Atish

Read only

Former Member
0 Likes
1,207

hi

good

You have to solve it within ABAP.

DATA: lv_comm(50) TYPE c,

lv_dir(50) TYPE c.

lv_dir = 'mydir'.

CONCATENATE 'mkdir' lv_dir INTO lv_comm SEPARATED BY space.

dir = unixcom = lv_comm. "command to create dir

thanks

mrutyun^

Read only

0 Likes
1,207

dir = unixcom = lv_comm. "command to create dir

Hi when I run the same peace of code it says unixcom is unknown.

Read only

0 Likes
1,207

Hi Friends,

Try defining it through SM69..

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
1,207

Go to T code AL11.

and then click configure button you can create the folder at your desired destination .

Reward points if useful .

Thanks ,

Jay

Read only

0 Likes
1,207

Hi Jagadish,

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.