it is possible,
Write this code in your program..
data: unixcom like rlgrap-filename.
data: begin of tabl occurs 500,
end of tabl.
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.
look the code of RSWATCH0, the directory are hard coded.
the program make a link between a sap_name and the name define in the config. Just create a directory into the server is not enough. You have to duplicate the SAP program, and add your own directory inside.
Or create a directory into a directory list by SAP. If it's on other directory and you are into Linux, you could ask your administrator to make a mount -o bind ..
To create an entry in AL11:
1. Make sure the folder exists at the OS level and you can do a "dir" on it
2. Go to AL11
3. If your system settings are correct and if you have the proper SAP auths you should see a configure button at the top - click CONFIGURE
4. In the boxes enter:
Param. Name: Z_<directory-name>
5. Click the SAVE button
Green arrow back and the new AL11 entry should now exist.
I was seeing some misonformation here....lets clarify:
what you need is an existing physical directory
likely you'll also want to share that directory
users need access to it..in this case the SAPServiceSID user must be owner/have read access at least to the share
in AL11, select a line, click configure and save as indicated... the directory name is DIR_YOURDIRECTORY, param name is
host\share or D:\pathtoshare as appropriate and Servername is all
the FILE transaction allows for a Logical ALIAS with physical directory on each server to be used for coding a generic drop and pickup routines. looks like
no other coding or information required for this to work....use the tcodes as provided!!
~former SAP Platinum Basis/BI