2008 Mar 20 12:31 PM
Hello,
I am generating files with output which i want to write to the application server in a directory which i want to create thru the program.
I dont want to use system commands (SM69)
Does anyone know if this is possible?
Regards,
Peter
Hello,
I am generating files with output which i want to write to the application server in a directory which i want to create thru the program.
I dont want to use system commands (SM69)
Does anyone know if this is possible?
Regards,
Peter
2008 Mar 20 12:44 PM
Use function module as WBMR_CREATE_APPL_FOLDER.
Else. Use Download function module and give the path.
Following you can able to create the folder.
Reward points if helpful.
Regards,
Sankar.
2021 Dec 14 6:20 AM
Wrong FM as it creates new folder in Mime-Repository. It is nothing to do with "directory on application server"
2008 Mar 20 1:04 PM
thanks for the answer, although this is asking for a transport request. Which i dont want ofcourse, any other ideas
2008 Mar 20 8:08 PM
Hello,
I have used the following code to accomplish this:
data: l_temppath(150),
l_imagepath(150),
l_commands(500).
l_temppath = 'file path and name'
concatenate 'mkdir' l_imagepath into l_commands separated by ' '.
open dataset l_temppath for output in text mode filter l_commands
encoding default.
close dataset l_temppath.
Regards
Greg Kern
2021 Dec 14 9:51 AM
Hello,
I would not recommend to do so. The usual procedure for this is to ask the basis team to create a folder. Best location for this is a file server that is mounted to the SAP system. On single instance systems it can also be located on the application server - depending on the size of the data that is used (because of the risk to stop the whole SAP system by flooding the file system).
To work with the folder a logical file / path should be used.
In a nutshell: even if you maybe find a function module that enables you to create a directory - bypassing the admins - I would not do it that way.