09-30-2008 9:23 AM
Hello, everyone,
I would like to know how to create a folder in server using abap, and the folder can save date by writting?
I have not find the solution.
09-30-2008 9:31 AM
USE SM69 with OS command MKDIR
USE FM 'SXPG_COMMAND_EXECUTE' to run this command
and store that data using DATASET.
09-30-2008 9:31 AM
USE SM69 with OS command MKDIR
USE FM 'SXPG_COMMAND_EXECUTE' to run this command
and store that data using DATASET.
09-30-2008 9:35 AM
Hi,
you must create a command ZMD in the transaction sm69 then use it by calling the system command related by the other user answer.
Rhea.
09-30-2008 9:38 AM
Hi,
Create one external unix command in SM69.
In that transaction, input "MKDIR" in the "Operation system command" field.
in the "Parameters for operating system command" input "&"
Lets say the external command you created is "'ZMKDIR'".
Now we need to call this in ABAP.
data: w_output TYPE SXPGCOLIST-PARAMETERS VALUE '/tmp/NEWDIR' ,
w_command TYPE SXPGCOLIST-name VALUE 'ZMKDIR'.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = w_command
ADDITIONAL_PARAMETERS = w_output
IMPORTING
STATUS = w_status
TABLES
EXEC_PROTOCOL = LOG
09-30-2008 9:43 AM
09-30-2008 10:03 AM
Hi, everyone, thanks for your help,
but I want only use abap to relized it. anyone know ?
Just like GUI_CREATE_DIRECTORY function to realize. when I running it , the system apper on 'core dump' error.
why?'