2007 Jan 26 10:43 AM
Hej folks,
does anybody know how to create a directory on the ApplServer via ABAP?
Thanks in advance!
boris
Hej folks,
does anybody know how to create a directory on the ApplServer via ABAP?
Thanks in advance!
boris
2007 Jan 26 10:47 AM
OPEN DATASET DS1 FOR OUTPUT.
if datset is no there ii will create file with the path
you have mentioned in DS1.
If you have any file on presentation server just use CG3Y transaction and upload the data to application server,check that in AL11 transaction.
Regards,
Santosh
2007 Jan 26 10:49 AM
2007 Jan 26 10:50 AM
Hi Boris,
i don't know the real UNIS-Command (MK??).
here an example for command LS:
DATA: BEGIN OF ITAB_LS OCCURS 0,
LINE(200),
END OF ITAB_LS.
*
CONSTANTS: CMD_LS(50) VALUE 'ls -al /tmp'.
*
CALL 'SYSTEM'
ID 'COMMAND' FIELD CMD_LS
ID 'TAB' FIELD ITAB_LS-SYS.
*
Hope it helps.
regards, Dieter
2007 Jan 26 10:51 AM
Hi Got to AL11 transaction and click the configure button.
THen follow the GUI there to create the required directories.
THis will help u.
2007 Jan 26 11:09 AM
2007 Jan 26 11:15 AM
2007 Jun 18 12:01 PM
You can create an external command via SM69 which you can then invoke through function module SXPG_COMMAND_EXECUTE
For NT you'd need something like the following:
Operating system command
cmd
Parameters for operating system command
/c mkdir
$/SAPGLOBALHOST/\?
Have fun,
Mark
Kudos to Pete Devereux and Pete White
2007 Jun 18 12:11 PM
here is the sample code for creating the directory .
parameters: p_path like rlgrap-filename.
at selection-screen on value-request for p_path.
CALL METHOD cl_gui_frontend_services=>DIRECTORY_CREATE
EXPORTING DIRECTORY = p_path .
reward points if it is usefull. ....
Girish