Skip to Content
0
Former Member
Jul 24, 2008 at 10:11 AM

need help: GUI_DOWNLOAD and tab-separated in between fields.

15 Views

hello everyone,

this is the layout of the interface that i created:

-


sy-title

-


total records processed: XX

total records failed: XX

-


summary of the error

-


pernr<tab>name<tab>error message<tab>otherfieldshere

i wanted the error log to be saved locally thus, i have to use GUI_DOWNLOAD.

ok, here's the current parameters i supplied with my gui_download:

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = v_file_string

filetype = 'ASC'

write_field_separator = 'X'

TABLES

data_tab = i_error_log

(exceptions not displayed)

the problem that i have is that, there is a difference between the error logs displayed after the execution and the error logs saved in my local directory.

i did find a way to resolve this BUT, i still need to refine it. also, the spaces between the fields seems not tab delimited, but separated by space.

to explain further here's the current error log that i have downloaded:

10000001<tab>10/23/2006<tab>01<tab>P<tab>11<tab>01

the header:

-


sy-title

-


total records processed: XX

total records failed: XX

-


summary of the error

-


is not included in the downloaded errorlog file.

i added some modification of my report to include it because, i want to to look exactly the same as of the errorlog generated/displyed after the execution.

the result looks as it is what i've expected BUT,

when i checked the spaces in between fields...

it is all separated by spaces... not tab.

here is the actual error log that i have obtained:

-


sy-title

-


total records processed: XX

total records failed: XX

-


summary of the error

-


pernr<space><space><space>name<space><space><space><space><space><space>error message<space><space>otherfieldshere

What i wanted to resolve is that, i want the error log to be tab delimited and not separated by space.

is this possible? if it is, any suggestion will truly be appreciated.