on 02-14-2006 12:00 PM
I am looking out for a solution to create folder (in AL11) from my ABAP program .This is to download everyday data in the application server (file name using sy-datum).
But I am not able to create a folder from the program.Is it possible to create the folder in AL11 ? Is there any c-functions atleast ?
Any help in this would be helpful for me.
thanks and regards
AVV Subramanian - India
Hi,
it is possible,
Write this code in your program..
data: unixcom like rlgrap-filename.
data: begin of tabl occurs 500,
line(400),
end of tabl.
dir =
unixcom = 'mkdir mydir'. "command to create dir
"to execute the unix command
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
"check the directory created or not.
regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viajy,
I am using below code in the ABAP program, unfortunately it is not sucessfully create the folder in the application server. Please correct the below code, if any thing wrong.
data: unixcom like rlgrap-filename,
dir type char(30).
data: begin of tabl occurs 500,
line(400),
end of tabl.
dir = '/tmp/test'.
tabl-line = dir.
append tabl.
unixcom = 'mkdir mydir'. "command to create dir
"to execute the unix command
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
Please correcr if anything wrong in the code..
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.