02-06-2009 12:03 PM
Hi Friends,
What is the use of attribute 'Mode' in Ws_upload?
Regards,
Anuradha.
02-06-2009 12:05 PM
HI,
Use the GUI_UPLOAD instead of WS_UPLOAD as it is obsolete.
F4 help for file name..
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = ' '
CHANGING
file_name = p_filename
EXCEPTIONS
mask_too_long = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_filename
filetype = 'ASC'
has_field_separator = c_x
TABLES
data_tab = p_input
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Edited by: Avinash Kodarapu on Feb 6, 2009 5:37 PM
02-06-2009 12:06 PM
Hi,
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD
Thanks
Arun
02-06-2009 12:06 PM
WS_UPLOAD is obsolete, use GUI_UPLOAD. Almost every parameter is well explained in documentation.
Thomas
02-06-2009 12:07 PM
I couldn't find any attribute called as mode in WS_UPLOAD function module
Could you please be more specific
02-06-2009 12:07 PM
blank for overwrite and 'A' is for append the file ( in WS_DOWNLOAD)
02-07-2009 4:03 AM