Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bdc

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

hi deepti,

Thx for u'r reply.how to create 'ASC' format file.In GUI_UPLOAD it asks for ASC format.

shishupalreddy
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

Hi,

Goto sm35

system->own jobs ->job selection

give the jobname and other details

and schedule it.

Regards,

Laxmi.

Former Member
0 Kudos

Hello,

for scheduling use SM36.

Regards,

Shehryar

Former Member
0 Kudos

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

Former Member
0 Kudos

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.