10-18-2006 8:23 AM
hi,
I want to shcedule a session method.when i use sm36 i get an error ("ws_upload is obsolete,use gui_upload).can anyone solve this.And also is there any way other then using sm36.
10-18-2006 9:52 AM
hi,
ws_download and ws_upload have become obsolete.instead of them you can use gui_download and gui_upload.
here is the sample code for function module.
call function 'GUI_UPLOAD'
exporting
filename = lv_filename
filetype = 'ASC'
has_field_separator = 'X'
tables
data_tab = lv_data_tab
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.
pv_message =
'PLEASE ENTER A FILE WHICH EXISTS AND HAS RELAVENT DATA'(e01).
exit.
Regards,
Deepthi Reddy
10-18-2006 8:32 AM
In background processing, u cannot use ws_upload and ws_download.
For scheduling u have to use SM36.
Best Regards,
Vibha
*Please mark all the helpful answers
10-18-2006 8:34 AM
Hi Manikandan,
When u r uploading the datas from flat file we us FM <b>GUI_UPLOAD</b>.
Then we do have a option in <b>SM35</b> to schedule job in background.If u click this tab,job is scheduled directly, no need to go to SM36.
10-18-2006 9:53 AM
hi deepti,
Thx for u'r reply.how to create 'ASC' format file.In GUI_UPLOAD it asks for ASC format.
10-18-2006 9:04 AM
Hi,
We must use GUI_UPLAOD to upload the data when we are in background.
and in sm35 YOU CAN SCHEDULE THE JOB
TRY THIS
gOTO ---> Bckground.
give the required options
regards,
10-18-2006 9:13 AM
Hi,
Goto sm35
system->own jobs ->job selection
give the jobname and other details
and schedule it.
Regards,
Laxmi.
10-18-2006 9:16 AM
10-18-2006 9:52 AM
hi,
ws_download and ws_upload have become obsolete.instead of them you can use gui_download and gui_upload.
here is the sample code for function module.
call function 'GUI_UPLOAD'
exporting
filename = lv_filename
filetype = 'ASC'
has_field_separator = 'X'
tables
data_tab = lv_data_tab
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.
pv_message =
'PLEASE ENTER A FILE WHICH EXISTS AND HAS RELAVENT DATA'(e01).
exit.
Regards,
Deepthi Reddy
10-18-2006 10:42 AM
hi manikandan,
Ascii is a format .it has nothing to do with the file name.just save the file normally but while uploading mention ascii.thats it.
regards,
deepthi reddy.