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

Create directory on application server

adel_adel
Participant
0 Likes
499

Hi all,

Can someone tell me how to create a directory on the application server in BACKGROUND ?

GUI_CREATE_DIRECTORY() is not working on the background.

Thanks.

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
423

I found this code from some other SDN posts:

call function 'GUI_CREATE_DIRECTORY'
     exporting
dirname = '//<ip_address>/qfilesvr400/<host>/usr/sap/TST/SYS/Folder1'
     exceptions
          failed  = 1
          others  = 2.

I am not sure wheather it will work in the background mode.

Regards,

Naimesh Patel

Read only

former_member194669
Active Contributor
0 Likes
423

Hi,

I think you need to give the path like this way


call function 'GUI_CREATE_DIRECTORY'
     exporting
          dirname = '//10.145.14.156/safil/<give your host name >/usr/temp/myFolder'
     exceptions
          failed  = 1
          others  = 2.

or use fm SXPG_COMMAND_EXECUTE after create a os command script thru SM69

a®