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

about function'ws_download'

Former Member
0 Likes
698

hello.

i use this function to download an internal table to local file,then the charactor type fields was shorted ,for example :in internal table ,a field value is '00AA',when i use this function downloading to local file,it is '00A' in local file.

what's wrong about it?

example code:

call function 'WS_DOWNLOAD'

exporting

  • CODEPAGE = 'IBM'

filename = 'c:\itab.dat'

filetype = 'DAT'

tables

data_tab = itab0.

thanks.

5 REPLIES 5
Read only

venkata_ramisetti
Active Contributor
0 Likes
607

Hi,

1. First check the internal table field length is sufficient to hold the complete value.

2. Check the FM by changing like this..

call function 'WS_DOWNLOAD'

exporting

  • CODEPAGE = 'IBM'

filename = 'c:\itab.dat'

filetype = 'ASC'

tables

data_tab = itab0.

3.If the bove doesn't work then try below..

call function 'WS_DOWNLOAD'

exporting

  • CODEPAGE = 'IBM'

filename = 'c:\itab.txt'

filetype = 'DAT'

tables

data_tab = itab0.

Thanks,

Ramakrishna

Message was edited by: Ramakrishna Prasad

Read only

Former Member
0 Likes
607

Hi rocky,

1. Try using FM Gui_DOWNLOAD

regards,

amit m.

Read only

0 Likes
607

thank you ,Amit .i use your method and it works .my problem is solved .

Read only

0 Likes
607

why can't i roward ? it comes an error:"Rewarding the message failed."

Read only

Former Member
0 Likes
607

Hi,

1. The points system is working now.

U may pls award points

to helpful answers !

regards,

amit m.