05-06-2005 2:44 PM
Hi all,
could you tell me can I use FM GUI_DOWNLOAD for create the file on the PC network.
Thanks a lot.
05-06-2005 2:59 PM
Yes, you have to give the network path name followed by filename in the export parameter for filename.
regadrs,
Sajith.
05-06-2005 2:59 PM
Yes, you have to give the network path name followed by filename in the export parameter for filename.
regadrs,
Sajith.
05-06-2005 3:07 PM
Data : l_file LIKE rlgrap-filename DEFAULT 'c:\temp\inv_to_wms.txt'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = l_FILE
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = it_datei
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
Rgds,
Manohar
08-04-2005 8:36 PM
Hi All,
I think, that is better use a method..
This is the method: (Is very easy)
call method CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
exporting
FILENAME = ' '
FILETYPE = 'DAT'
.
.
changing
data_tab = ti_proy[].
In the class CL_GUI_FRONTEND_SERVICES you can find others methods, for example:
FILE_GET_VERSION
FILE_OPEN_DIALOG
FILE_SAVE_DIALOG
GET_COMPUTER_NAME
GET_DESKTOP_DIRECTORY
If any need help, tell me please.
Ronald