Application Development 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: 

How to create TAB deliminated file

Former Member
0 Kudos

Hi,

When we download a file from interanl table using GUI_DOWNLOAD function module how can we make it TAB Delimated.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In the importing parameters pass 'X' to WRITE_FIELD_SEPERATOR and Filetype as 'ASC'. This will produce a output file which is tab delimited.

3 REPLIES 3

Former Member
0 Kudos

In the importing parameters pass 'X' to WRITE_FIELD_SEPERATOR and Filetype as 'ASC'. This will produce a output file which is tab delimited.

0 Kudos

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.

0 Kudos

>

> 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.