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

WS_DOWNLOAD Function module

Former Member
0 Likes
1,850

Hi Friends,

My requirement is to download the data from standard SAP table in DAT format the downloaded file should contain delimter comma for all the fields. Is this possible using function module ws_download?

Regards,

Dinesh

6 REPLIES 6
Read only

Former Member
0 Likes
1,101

hi Dinesh .. Better use <b>GUI_DOWNLOAD</b> FM instead of WS_DOWNLOAD

Check out this thread for usage of GUI_DOWNLOAD FM

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

Read only

Former Member
0 Likes
1,101

WS_download is an Obselete FM

so please use GUI_Download Fm

Read only

Former Member
0 Likes
1,101

Hi Dinesh

Try the following code.

DATA : lc_filename TYPE string.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

  • BIN_FILESIZE =

  • WRITE_FIELD_SEPARATOR = ' '

filename = lc_filename

filetype = 'DAT'

TABLES

data_tab = gt_itab.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Reward points if it helps.

Read only

Former Member
0 Likes
1,101

Hi Friends,

I have the Function module ws_download alone in my SAP system,there is no gui_download FM?is it possible to solve this issue using ws_download?

Regards,

Dinesh

Read only

0 Likes
1,101

Hi Dinesh,

Upto R/3 version 4.6c WS_UPLOAD is recommended.

Higher than 4.6c like 4.7, 5.0 GUI_UPLOAD is recommended.

Thanks,

Rani.

Read only

p291102
Active Contributor
0 Likes
1,101

HI Dinesh,

U can ask ur basis peoples to upgrade the GUI STATUS in SAP.

Thanks

sankar