cancel
Showing results for 
Search instead for 
Did you mean: 

about passing fuction module ws_upload in bdc

Former Member
0 Kudos
65

hi ,

when i am passing ws_upload function module in bdc program

a message always comes

"this function module is obsolute-do not use"

so plz tell me what should i do.

how could i upload my file in bdc program.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi zuhi,

*ws_upload * is a very old FM and is not recommended for use.

we have another function module GUI_UPLOAD

this FM can be used to upload text files (tab delimited) into the internal tables.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = 'C:\BDC.TXT'

HAS_FIELD_SEPARATOR = 'X'

tables

data_tab = ITAB.

hope this helps solve your problem. reward points if helpful...

Ramu

Former Member
0 Kudos

thanks

for your great help.

my problem was solved by this answer.

these are the valuable answers for new abap programmers.

thanks once again.

Answers (1)

Answers (1)

Former Member
0 Kudos

The Function Module WS_UPLOAD is obsolute. Hence the SAP suggest you not to use any Program or FM which is Obsolute.

The SAP has given a Function Module GUI_UPLOAD as a replacement for the Function Module WS_UPLOAD and for downloading use the Function Module GUI_DOWNLOAD instead of WS_DOWNLOAD.

FM GUI_UPLOAD

The module loads a file from the PC to the server. The data can be transferred in binary or text format. Numbers and data fields can be interpreted according to the user settings

Reward points if useful.

Binary upload: no conversion or interpretation

begin of itab,

raw(255) type x,

end of itab occurs 0.

CALL FUNCTION 'GUI_UPLOAD'

exporting

filetype = 'BIN'

filename = 'C:\DOWNLOAD.BIN'

tables

data_tab = itab.

Textual upload

begin of itab,

text(255) type c,

end of itab occurs 0.

CALL FUNCTION 'GUI_UPLOAD'

exporting

filetype = 'ASC'

filename = 'C:\DOWNLOAD.TXT'

tables

data_tab = itab.

Edited by: Sravan Prakash.V on Dec 27, 2007 12:56 PM