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 directory on application server

Former Member
0 Likes
1,815

hi

how to create a directory on the application server??

5 REPLIES 5
Read only

Former Member
0 Likes
988

Hi Saurabh,

Check with your BASIS. They can easily create for you.

Regards,

Atish

Read only

0 Likes
988

Either contact Basis guys at ur end for the same or u can do it dynamically via a piece of ABAP code, i hope it wll help u.



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

Read only

Former Member
0 Likes
988

hi

follow the link. hope it definitely help u.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40b0d690-0201-0010-2c86-909...

regard

ravish

<b>plz reward points if helpful</b>

<b></b>

Read only

Former Member
0 Likes
988

hi saurabh,

see the below for sample code,

report zbdc_test_open_data_set.

parameters: file(200) type c.

data: begin of g_itab occurs 0,

kunnr type kunnr,

land1 type land1_gp,

name1 type name1_gp,

ort01 type ort01_gp.

data: end of g_itab.

select kunnr

land1

name1

ort01

from kna1

into table g_itab.

open dataset file for output in text mode encoding default.

loop at g_itab from 1 to 50.

transfer g_itab to file.

endloop.

close dataset file.

after excution of this report u can check the T.code 'AL11' and in that 'HOME' folder your given file name.

try this it works,

regards,

seshu.

Read only

Pyc
Participant
988

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