Skip to Content
author's profile photo Former Member
Former Member

Folder creation in AL11 using ABAP program

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 14, 2006 at 12:35 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.