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

creating directory in App.server

Former Member
0 Likes
1,032

Hi Experts,

How can we create a directory in App.server?

is it possible programatically with open data set statement?

Hi Experts,

How can we create a directory in App.server?

is it possible programatically with open data set statement?

7 REPLIES 7
Read only

Former Member
0 Likes
957

I don't think it is programatically possible. Ask the basis guys to create the directory in application server. Mostly they will be having the access to do that.

Regards,

Prakash.

Read only

Former Member
0 Likes
957

Nope you cannot create the directory programmatically but you can check the FILE transaction to define the logical/physical paths for the same.

Read only

Former Member
0 Likes
957

Hello Ravi,

It is definitely not possible to create a directory in the application server. Please contact your basis guy for the same.

Regs,

Venkat Ramanan N

Read only

0 Likes
957

You can create only Files in application server and not the DIRECTORIES (FOLDERS). It is basically for security reasons.

Only BASIS guys can create it.

regards

Vivek

reward points for all the useful answers

Read only

Former Member
0 Likes
957

try this

Got to AL11 transaction and click the configure button.

THen follow the GUI there to create the required directories.

Read only

Former Member
0 Likes
957

Hi Ravi,

If your application server is based on UNIX,

try the following command in an ABAP program

CALL 'SYSTEM' ID 'COMMAND' FIELD fp_command_line

ID 'TAB' FIELD lt_output.

The command line fp_command_line should have the UNIX command to create directories(MKDIR...). The lt_output table will have return values from the command(Its a table with a single column of 1000 chars).

I have tried the CALL 'SYSTEM' command for various other purposes, but did not create a directory till now. Try it out.

Thanks,

Vinay

Read only

Pyc
Participant
0 Likes
957

You can create an external command via SM69 which you can then invoke through function module SXPG_COMMAND_EXECUTE

For NT you'd need something like the following:

Operating system command

cmd

Parameters for operating system command

/c mkdir
$/SAPGLOBALHOST/\?

Have fun,

Mark

Kudos to Pete Devereux and Pete White