Application Development 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: 

How to create a directory in application server

former_member842213
Participant
0 Kudos

Hi all,

How to create a directory in application server through Progaram??

eg:\tmp - is already existing

I want to create \tmp\fi

Within \tmp\fi - i should able to store my file,,,

Kindly help me urgent...

5 REPLIES 5

varma_narayana
Active Contributor
0 Kudos

Hi..

Call the Method DIRECTORY_CREATE of Class CL_GUI_FRONTEND_SERVICES.

You can find this Class in SE24.

In the Editor use Pattern -> ABAP Object Patterns to Call this Method..

<b>Reward if Helpful</b>

Former Member
0 Kudos

Hello San,

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.

Reward If Helpful.

Regards

--

Sasidhar Reddy Matli.

messier31
Active Contributor
0 Kudos

Hi,

Ask your basis guy to do so.. I doutb if it possible thorough code.

Enjoy SAP.

Pankaj Singh.

messier31
Active Contributor
0 Kudos

Hi,

Above class or function modules are only for creating directory on GUI and not for application servers.

Enjoy SAP.

Pankaj Singh.-

Former Member
0 Kudos

so...if we cant do it using code, how can we do it manually?

tks