Application Development and Automation 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: 
Read only

difference between GUI_UPLOAD and WS_UPLOAD

Former Member
0 Likes
623

Hi,

Please make me clear about the difference between GUI_UPLOAD and WS_UPLOAD. In which cases we need to use these modules...??

Thanks,

Satish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

Hi Satish,

http://www.sapdevelopment.co.uk/file/file_otherpc.htm

If I've understood right if you use version 4.7 and above you should use GUI_UPLOAD since WS_UPLOAD is considered obsolete.

Regards,

Ville

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
461

I would suggest to always use the GUI_UPLOAD. I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES. Really, you should probably use the class/method instead of the function module.



  data: filename type string.

  filename = p_file.


  call method cl_gui_frontend_services=>gui_upload
         exporting
              filename                = filename
              filetype                = 'ASC'
         changing
              data_tab                = iflatf
         exceptions
              file_open_error         = 1
              file_read_error         = 2
              no_batch                = 3
              gui_refuse_filetransfer = 4
              no_authority            = 6
              unknown_error           = 7
              bad_data_format         = 8
              unknown_dp_error        = 12
              access_denied           = 13
              others                  = 17.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
462

Hi Satish,

http://www.sapdevelopment.co.uk/file/file_otherpc.htm

If I've understood right if you use version 4.7 and above you should use GUI_UPLOAD since WS_UPLOAD is considered obsolete.

Regards,

Ville

Read only

Former Member
0 Likes
461

hi satish,

WS_UPLOAD is obsolete as of 4.7 so GUI_UPLOAD is the next trend FM which will be used in continuance.

whenver there is an upgrade later then the WS_UPLOAD will have to be removed and replaced with GUI_UPLOAD.

so only try to use GUI_UPLOAD only.

regards

venugopal