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: 

Folder in Application Server directory

Former Member
0 Kudos

Hi Experts,

How to create a folder in Application Server directory???

I have file path '/cg/interface/PLM/test/CONTENT/' i need to create a folder and inside that i need to save my files.

so final path will be like this

/cg/interface/PLM/test/CONTENT/files/arjun1.jpg'.

/cg/interface/PLM/test/CONTENT/files/arjun2.jpg'.

/cg/interface/PLM/test/CONTENT/files/arjun3.jpg'.

Regards,

Arjun.

3 REPLIES 3

sandeep_katoch
Contributor
0 Kudos

Hi Arjun,

Please check on these

http://scn.sap.com/thread/111993

http://scn.sap.com/message/8122081

In my knowlwdge Basis people will do this for you.

Rgds,

Sandeep Katoch

raymond_giuseppi
Active Contributor
0 Kudos

You can usually only check/map folder via AL11 transaction, so either

- ask OS basis to create folder

- use external command (depending on OS, like mkdir) to create directory (SM49)

In both cases, check authorizations at OS level with help of OS basis.

Regards,

Raymond

Former Member
0 Kudos

Hi Arjun,

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.