04-22-2008 3:21 PM
Hi Guru,
I am downloading the data to presentation server. But it should download to another peson m/c.How to do that .
Pls help me.
For ex. There are two persons A and B.
When A is executing the data then it sud download in the m/c of B.
Thanks
04-22-2008 5:23 PM
Hi,
You can download the file directly into another system it is working I have done it is possible. 1st you have to map the system in your network places then you can give the path directly it will dowloads.
Steps:
1. 1st you have to map the system in your network places there you will get a option add network place click on that it will gives popup screen there you can press next button.
2. In next step it will asks choose another network location select that and click on next button
3. In next screen you will get browse button from there you can browse and select the path and click on that next button
4. Finally it will asks you finish button click on finish button it will creates a network place on your system
5. This path you can give directly where you want it will downloads there directly
Note: If it is same network it will works normally as I said. and If It is in other network you have to use VPN connection then it will works.
See below Example I tried it was worked.
DATA: IT_MARA TYPE STANDARD TABLE OF MARA WITH HEADER LINE.
SELECT * FROM MARA INTO TABLE IT_MARA.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = '
abcsrvr\abc\TEST.XLS'
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'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = IT_MARA
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
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks
Ganesh
04-22-2008 3:28 PM
I think this is not possible. May be if B's system is FTP enabled then you can FTP the file.
a®
04-22-2008 4:06 PM
04-22-2008 3:29 PM
hi it is better to use the radio button to give the file path name for the two persons ...
if r1 = 'X' .
use gui_download.
elseif r2 = 'X'.
use gui_download.
endif.
regards,
venkat
04-22-2008 4:59 PM
Hi Sandeep Garg ,
This is very simple. Create a mapdrive to that another person's machine and give that machine folder path in your program. Make sure to share the folder in the another person's machine.
Thanks,
Greetson
04-22-2008 5:23 PM
Hi,
You can download the file directly into another system it is working I have done it is possible. 1st you have to map the system in your network places then you can give the path directly it will dowloads.
Steps:
1. 1st you have to map the system in your network places there you will get a option add network place click on that it will gives popup screen there you can press next button.
2. In next step it will asks choose another network location select that and click on next button
3. In next screen you will get browse button from there you can browse and select the path and click on that next button
4. Finally it will asks you finish button click on finish button it will creates a network place on your system
5. This path you can give directly where you want it will downloads there directly
Note: If it is same network it will works normally as I said. and If It is in other network you have to use VPN connection then it will works.
See below Example I tried it was worked.
DATA: IT_MARA TYPE STANDARD TABLE OF MARA WITH HEADER LINE.
SELECT * FROM MARA INTO TABLE IT_MARA.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = '
abcsrvr\abc\TEST.XLS'
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'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = IT_MARA
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
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks
Ganesh