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

Automatic folder creation in AL11

Former Member
0 Likes
1,785

Hi,

Is there any standard class or a method for automatic folder creation in AL11 in background. I have got a FM BRAN_DIR_CREATE but i have to modify this into zFM. Can you suggest any other way.

Thanks,

Hi,

Is there any standard class or a method for automatic folder creation in AL11 in background. I have got a FM BRAN_DIR_CREATE but i have to modify this into zFM. Can you suggest any other way.

Thanks,

3 REPLIES 3
Read only

Abinathsiva
Active Contributor
1,531

Hi,

try below code

data: filename like   rlgrap-filename. 
data: begin of table occurs 500,        
        .....   
      end of table.
dir = filename = 'mkdir directoryname'. 

call 'SYSTEM' id 'COMMAND' field filename
                  id 'TAB' field table[].


Read only

1,531

SAP recommend officially to define the command via transaction code SM49 (= SM69) and the function modules SXPG... Direct kernel call is not supported by SAP.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,531

Official way: define the command (the one you could use at operating system level) in transaction code SM49 and execute it via function module SXPG_COMMAND_EXECUTE. Search the Web for more information.