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

Creatinf Folder in SAP Directory

Former Member
0 Likes
1,889

Hi,

I want to create a Folder 'zfolder1' in '/usr/tmp' , i.e, /usr/tmp/zfolder1 in AL11. Can anybody tell me how to create it .Do I need to ask the BASIS Consultant to do it for me or I can create the folder???

Hi,

I want to create a Folder 'zfolder1' in '/usr/tmp' , i.e, /usr/tmp/zfolder1 in AL11. Can anybody tell me how to create it .Do I need to ask the BASIS Consultant to do it for me or I can create the folder???

4 REPLIES 4
Read only

Former Member
0 Likes
584

Ask basis consultant to create folder ,i think you will not have authrization.

Read only

Former Member
0 Likes
584

If you have authrization then

try with Transaction AL11 - "Configure" button, You'll be able to create directory.

better to ask basis guy before creating the folder

Read only

Former Member
0 Likes
584

Hi,,

You are right, BASIS team will create any folder on application server ...

regards,

  • Dj

reward, if its useful

Read only

Clemenss
Active Contributor
0 Likes
584

Hi Manish,

if your authorization is OK, you can issue unix or other system commands from ABAP.

Please refine the code snippets I found in my archive:


REPORT ZUNIXCOM .

DATA: U_COMMAND(200).
* Table for system messages
DATA: BEGIN OF RT OCCURS 100 ,
LINE(100) ,
END OF RT .

START-OF-SELECTION .

MOVE 'unix command' to U_COMMAND .
REFRESH RT.
CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND
ID 'TAB' FIELD RT-*SYS* .
LOOP AT RT.
WRITE : / RT-LINE .
ENDLOOP.

(3) this method is supported by SAP and are recomended. On AIX you need to use this method instead of CALL SYSTEM due to implementation error on AIX.

DATA: BEGIN OF TABL OCCURS 10.
  TEXT(80) TYPE C,
END OF TABL.

DATA: COMMAND(256) TYPE C.

COMMAND = 'ls'.
CALL FUNCTION 'RFC_REMOTE_PIPE' DESTINATION 'SERVER_EXEC'
       EXPORTING COMMAND  = COMMAND
                 READ     = 'X'
       TABLES    PIPEDATA = TABL.
LOOP AT TABL.
  WRITE:/ TABLE.
ENDLOOP.          

Regards,

Clemens