‎2007 Jan 19 6:16 AM
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
‎2007 Jan 19 6:17 AM
hi Dinesh .. Better use <b>GUI_DOWNLOAD</b> FM instead of WS_DOWNLOAD
Check out this thread for usage of GUI_DOWNLOAD FM
‎2007 Jan 19 6:17 AM
‎2007 Jan 19 6:23 AM
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.
‎2007 Jan 19 6:34 AM
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
‎2007 Jan 19 7:22 AM
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.
‎2007 Jan 19 6:38 AM
HI Dinesh,
U can ask ur basis peoples to upgrade the GUI STATUS in SAP.
Thanks
sankar