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

BDC

Former Member
0 Likes
769

HI.......TO EVERYBODY....

WHAT IS THE DIFFERENCE BETWEEN WS_UPLOAD AND GUI_UPLOAD?

WHY WE CANT USE WS_UPLOAD IN 4.7EE?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
747

Hi,

Nagesh if u dont mind can i tell one thing , before posting just check once regarding ur doubt , if u cant findout proper solution then post

Dont mind its friendly request

Anyway go through this may be u can get some idea with this

GUI_UPLOAD has some additional parameters compared to WS_UPLOAD

You can check this for some info

http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm

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

GUI_UPLOAD is the improved version of ws_upload. There are many more importing parameters in GUI_UPLOAD when compared to ws_upload.

It is also recommended that you should use GUI_UPLOAD instead of ws_upload.

Reward if helpful.

Thanks

Naveen khan

6 REPLIES 6
Read only

Former Member
0 Likes
747

HI,

As the versions change so does SAP gives you the encanced functionality to the existing Function modules.... Both Does the same thing....

I think the main difference is that GUI_UPLOAD is unicode compliant and WS_UPLOAD is not

You can check this for some info

http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm

Thank

mahesh

Read only

Former Member
0 Likes
748

Hi,

Nagesh if u dont mind can i tell one thing , before posting just check once regarding ur doubt , if u cant findout proper solution then post

Dont mind its friendly request

Anyway go through this may be u can get some idea with this

GUI_UPLOAD has some additional parameters compared to WS_UPLOAD

You can check this for some info

http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm

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

GUI_UPLOAD is the improved version of ws_upload. There are many more importing parameters in GUI_UPLOAD when compared to ws_upload.

It is also recommended that you should use GUI_UPLOAD instead of ws_upload.

Reward if helpful.

Thanks

Naveen khan

Read only

Former Member
0 Likes
747

Use GUI_UPLOAD from 4.7 Version and WS_UPLOAD is should not use since it will not suit for Unicode environment.

GUI_UPLOAD contains delimiter but ws_upload does not contain

you want read by line by line then gui_upload will have that feature..

Thanks

Seshu

Read only

0 Likes
747

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

Whenever 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,

srinivas

<b>*reward for useful answers*</b>

Read only

Former Member
0 Likes
747

Hi Nagesh,

The FM 'WS_UPLOAD' has become obselete and the new FM 'GUI_UPLOAD' has been released with additional funtionality. In later versions this WS_UPLOAD will some times may be removed so its recommended to use the latest one i.e, GUI_UPLOAD which has more functionality like parameter FILENAME in WS UPLOAD is of Character type of length 128 but in the latest one i.e, in GUIUPLOAD its String where its length is more than the previous....and so on.

Check the parameters while passing.

You can see the difference how i have passed the parameters.

  • CALL FUNCTION 'WS_UPLOAD'

  • EXPORTING

  • codepage = 'IBM'

  • filename = p_file

  • filetype = 'DAT'

  • TABLES

  • data_tab = t_root

  • EXCEPTIONS

  • conversion_error = 1

  • file_open_error = 2

  • file_read_error = 3

  • invalid_table_width = 4

  • invalid_type = 5

  • no_batch = 6

  • unknown_error = 7

  • gui_refuse_filetransfer = 8.

DATA: D_FILENAME TYPE STRING.

D_FILENAME = P_FILE.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = D_FILENAME

FILETYPE = 'ASC'

HAS_FIELD_SEPARATOR = 'X'

  • HEADER_LENGTH = 0

  • READ_BY_LINE = 'X'

DAT_MODE = 'X'

  • CODEPAGE = ' '

  • IGNORE_CERR = ABAP_TRUE

  • REPLACEMENT = '#'

  • CHECK_BOM = ' '

  • IMPORTING

  • FILELENGTH =

  • HEADER =

TABLES

DATA_TAB = t_root

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

.

Read only

Former Member
0 Likes
747

Hi Nagesh,

The FM 'WS_UPLOAD' has become obselete and the new FM 'GUI_UPLOAD' has been released with additional funtionality. In later versions this WS_UPLOAD will some times may be removed so its recommended to use the latest one i.e, GUI_UPLOAD which has more functionality like parameter FILENAME in WS UPLOAD is of Character type of length 128 but in the latest one i.e, in GUIUPLOAD its String where its length is more than the previous....and so on.

Check the parameters while passing.

You can see the difference how i have passed the parameters.

  • CALL FUNCTION 'WS_UPLOAD'

  • EXPORTING

  • codepage = 'IBM'

  • filename = p_file

  • filetype = 'DAT'

  • TABLES

  • data_tab = t_root

  • EXCEPTIONS

  • conversion_error = 1

  • file_open_error = 2

  • file_read_error = 3

  • invalid_table_width = 4

  • invalid_type = 5

  • no_batch = 6

  • unknown_error = 7

  • gui_refuse_filetransfer = 8.

DATA: D_FILENAME TYPE STRING.

D_FILENAME = P_FILE.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = D_FILENAME

FILETYPE = 'ASC'

HAS_FIELD_SEPARATOR = 'X'

  • HEADER_LENGTH = 0

  • READ_BY_LINE = 'X'

DAT_MODE = 'X'

  • CODEPAGE = ' '

  • IGNORE_CERR = ABAP_TRUE

  • REPLACEMENT = '#'

  • CHECK_BOM = ' '

  • IMPORTING

  • FILELENGTH =

  • HEADER =

TABLES

DATA_TAB = t_root

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

.

<b><b>Reward if Useful</b>[/b

Adithya M