cancel
Showing results for 
Search instead for 
Did you mean: 

Folder creation in AL11 using ABAP program

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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..