03-29-2008 6:17 AM
03-29-2008 9:28 AM
Hi,
When using WS_DOWNLOAD, if the directory exists on the PC then the download is successful. However, if the directory does not exist then the download fails. Therefore, you can use GUI_CREATE_DIRECTORY to create the directory at the begining of your ABAP programs. If the directory or folder already exists on the personal computer, the command will just be ignored.
Tested in 4.6x
REPORT ZGUI_DIR.
call function 'GUI_CREATE_DIRECTORY'
exporting
dirname = 'C:\TEST'
EXCEPTIONS
FAILED = 1
OTHERS = 2.
if sy-subrc <> 0.
WRITE: / 'Error Code ',SY-SUBRC.
endif.
Reward points if found helpful..
Cheers,
Barli.
03-29-2008 8:08 AM
03-29-2008 8:38 AM
Hi,
use the function module as follows.
call function gui_create_directory.
IMPORTING
DIRNAME = 'C:\TEST'
EXCEPTIONS
FAILED = 1.
Regards,
Sanki.
03-29-2008 9:28 AM
Hi,
When using WS_DOWNLOAD, if the directory exists on the PC then the download is successful. However, if the directory does not exist then the download fails. Therefore, you can use GUI_CREATE_DIRECTORY to create the directory at the begining of your ABAP programs. If the directory or folder already exists on the personal computer, the command will just be ignored.
Tested in 4.6x
REPORT ZGUI_DIR.
call function 'GUI_CREATE_DIRECTORY'
exporting
dirname = 'C:\TEST'
EXCEPTIONS
FAILED = 1
OTHERS = 2.
if sy-subrc <> 0.
WRITE: / 'Error Code ',SY-SUBRC.
endif.
Reward points if found helpful..
Cheers,
Barli.