08-24-2008 4:15 PM
Hi,
When we download a file from interanl table using GUI_DOWNLOAD function module how can we make it TAB Delimated.
08-24-2008 5:54 PM
In the importing parameters pass 'X' to WRITE_FIELD_SEPERATOR and Filetype as 'ASC'. This will produce a output file which is tab delimited.
08-24-2008 5:54 PM
In the importing parameters pass 'X' to WRITE_FIELD_SEPERATOR and Filetype as 'ASC'. This will produce a output file which is tab delimited.
08-24-2008 6:06 PM
Hi Aparna,
Thanks for your response,could you please let me know whicl file type(xls, txt, csv) we can use while appling your prescribed solution to make TAB Delimated.
08-24-2008 7:06 PM
>
> Hi Aparna,
>
> Thanks for your response,could you please let me know whicl file type(xls, txt, csv) we can use while appling your prescribed solution to make TAB Delimated.
specify the file extension as *.txt
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\textfile.txt'
write_field_separator = 'X'
TABLES
data_tab = it_tab
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.