01-06-2005 10:07 PM
Hi all
During the coding of BDC program.
I found function UPLOAD and WS_UPLOAD are obsolete in 4.7 / eneterprise version.
wat are/should to use instead?
Regards
Satheesh
01-06-2005 10:15 PM
Hi Satheesh,
You should use the function module GUI_UPLOAD instead.
Here is an introduction to you about the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
- one 10 points (solved)
- two 6 points (very helpful answer)
- many 2 points (helpful answer)
Regards,
Srinivas
01-06-2005 10:15 PM
Hi Satheesh,
You should use the function module GUI_UPLOAD instead.
Here is an introduction to you about the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
- one 10 points (solved)
- two 6 points (very helpful answer)
- many 2 points (helpful answer)
Regards,
Srinivas
01-12-2005 10:16 AM
01-12-2005 12:40 PM
I would recommend to use class CL_GUI_FRONTEND_SERVICES with method GUI_DOWNLOAD & GUI_UPLOAD instead.
Regards,
Peter
01-12-2005 12:47 PM
Peter which are the differences implementing the class that you recommend?
01-12-2005 12:57 PM
Technically there is no difference, as these methods are based on the previously mentioned FMs. You can see if you check the source code of these methods.
However, somewhere I saw that SAP recommends to use these methods and this class for Frontend related things.
Regards,
Peter
01-12-2005 12:58 PM
ok, i understand, can you show me a piece of code implementing that Class with the GUI_UPLOAD?
Regards,
Carlos
01-12-2005 1:14 PM
In 46C there is program called BCALV_EXPLOG_DISPLAY. Line 280. You can check it.
* dump to frontend frontend trace ">>Y9DK011534
call method cl_gui_frontend_services=>gui_download
exporting
* BIN_FILESIZE =
filename = 'ALVEXPTRCOFFLINE.TRC'
* FILETYPE = 'ASC'
* APPEND = SPACE
* WRITE_FIELD_SEPARATOR = SPACE
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = SPACE
* WRITE_LF = 'X'
* COL_SELECT = SPACE
* COL_SELECT_MASK = SPACE
* IMPORTING
* FILELENGTH =
changing
data_tab = lt_dump
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. "<<Y9DK011534
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
message i000(0k) with text-006.
"input trace dumped to ALVEXPTRCOFFLINE.TRC'.
endif.
else.
message i000(0k) with text-007. " no input trace found.
endif.