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

Folder in Application Server directory

Former Member
0 Likes
2,996

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
Read only

sandeep_katoch
Contributor
0 Likes
1,195

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,195

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

Read only

Former Member
0 Likes
1,195

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.