2007 Jun 15 9:58 PM
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???
2007 Jun 15 10:03 PM
Ask basis consultant to create folder ,i think you will not have authrization.
2007 Jun 15 10:09 PM
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
2007 Jun 15 10:44 PM
Hi,,
You are right, BASIS team will create any folder on application server ...
regards,
Dj
reward, if its useful
2007 Jun 15 11:45 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |