Skip to Content
avatar image
Former Member

Download TAB-Delimited file

Hi,

I want to produce a TAB-Delimited File using the FM, Gui_Download. Could anyone help how to do this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 14, 2005 at 10:44 AM

    Hi Jim,

    In the importing parameters give 'X' to WRITE_FIELD_SEPERATOR.This will produce a output whcih is tab delimited in case of ASCII outputs.

    Cheers

    Nishanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 14, 2005 at 11:32 AM

    Hi Jim,

    Please close the thread and award points if your problem is solved.If you still have any problems then let us know.

    Cheers

    Nishanth

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 14, 2005 at 12:49 PM

    Hi,

    If you use 'X' for importing parameter WRITE_FIELD_SEPARATOR and Filetype as 'ASC', in that function module , then you will get desired output.

    This information is available in importing parameter WRITE_FIELD_SEPARATOR.Check it.Nishant also told the same.

    If your problem is solved,kindly reward points for useful answers and close this thread.Otherwise , get back.

    I think your previous thread is also solved.If so,kindly reward points for useful answers and close the same by clicking the following link.Otherwise,get back.

    set cursor on a parameter

    Regards,

    J.Jayanthi

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 14, 2005 at 10:42 AM

    I'd suggest to use CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD instead. It won't be obsolete in higher releases and it has a parameter WRITE_FIELD_SEPARATOR.

    Peter

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 22, 2007 at 07:21 PM

    Use this <b>METHOD cl_gui_frontend_services=>gui_download</b>

    • Download the output file to presentation server

    CALL METHOD cl_gui_frontend_services=>gui_download

    EXPORTING

    filename = filename "filename to be generated

    filetype = 'ASC' "File type ASCII for tab delimited

    write_field_separator = 'X' "X for tab delimiter

    CHANGING

    data_tab = itab_download "internal table with data

    EXCEPTIONS

    file_write_error = 1

    no_batch = 2

    gui_refuse_filetransfer = 3

    invalid_type = 4

    no_authority = 5

    Please check and close your thread if its resolved.

    Reward points if useful.

    Add comment
    10|10000 characters needed characters exceeded