Skip to Content
0
Former Member
Sep 15, 2007 at 12:31 AM

GUI_Download problem in tab delimited file

526 Views

Hi,

I am trying to download tab delimited file using F.M GUI_DOWNLOAD.We have

4.6C version.I have declared internal table with 5 columns.The file created using F.M is very strange.Column 1 and 2 and 3 and 4 are seaprated by tab but column 2

and 3 and column 4 and 5 are not seaprated by tab but have fixed length.

I am not getting where I am doing mistake.Any help is appericiated.

Below is the structure of internal table.

DATA:BEGIN OF IT_FINAL OCCURS 0,

Company(3) type c,

County(30) type c,

FId(35) type c,

Wellno(15) type c,

Welldesc(35) type c,

END OF IT_FINAL.

Data populated in table it_final.

it_final-Company = '300'.

it_final-County = 'Greenwood'.

it_final-fid = 'testts'.

it_final-wellno = '10000000'.

it_final-welldesc = 'tebsbvd'.

append it_final.

F.M GUI_DOWNLOAD

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

  • BIN_FILESIZE =

filename = l_path

  • FILETYPE = 'ASC'

  • APPEND = ' '

write_field_separator = 'X'

  • HEADER = '00'

  • TRUNC_TRAILING_BLANKS = ' '

  • WRITE_LF = 'X'

  • COL_SELECT = ' '

  • COL_SELECT_MASK = ' '

  • DAT_MODE = ' '

  • IMPORTING

  • FILELENGTH =

TABLES

data_tab = it_final

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

unknown_error = 6

header_not_allowed = 7

separator_not_allowed = 8

filesize_not_allowed = 9

header_too_long = 10

dp_error_create = 11

dp_error_send = 12

dp_error_write = 13

unknown_dp_error = 14

access_denied = 15

dp_out_of_memory = 16

disk_full = 17

dp_timeout = 18

file_not_found = 19

dataprovider_exception = 20

control_flush_error = 21

OTHERS = 22

.

Thanks,

Rekha.